diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 10635f8306..0af98106d2 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c @@ -207,7 +207,7 @@ static bool dir_properties(char* selected_file) if(false == _dir_properties(&dps)) return false; - rb->snprintf(str_dirname, MAX_PATH, "%s", selected_file); + rb->strncpy(str_dirname, selected_file, MAX_PATH); rb->snprintf(str_dircount, sizeof str_dircount, "Subdirs: %d", dps.dc); rb->snprintf(str_filecount, sizeof str_filecount, "Files: %d", dps.fc); rb->snprintf(str_size, sizeof str_size, "Size: %s",