diff options
author | Nils Wallménius <nils@rockbox.org> | 2008-08-15 09:47:22 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2008-08-15 09:47:22 +0000 |
commit | bc712c9782adb5922a00cf85c71a081b0bbb4f6d (patch) | |
tree | efb4b5889a5bcbaa1776f1cd4419d9c19b904f8a | |
parent | 8f80c5860e5948cedf0aebc7f3c171085faedd27 (diff) |
Ok, ok, strncpy is better here :P
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18285 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/properties.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |