Ok, ok, strncpy is better here :P
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18285 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8f80c5860e
commit
bc712c9782
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue