From bc712c9782adb5922a00cf85c71a081b0bbb4f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Fri, 15 Aug 2008 09:47:22 +0000 Subject: Ok, ok, strncpy is better here :P git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18285 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/properties.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins') 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", -- cgit v1.2.3