From 79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 17 Mar 2007 09:02:53 +0000 Subject: Let GCC check arguments of some more printf-style functions, also for plugins and codecs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/text_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/text_editor.c') diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 8040d00f22..9917d03242 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -123,7 +123,7 @@ char *list_get_name_cb(int selected_item,void* data,char* buf) { char t = b[MAX_PATH-10]; b[MAX_PATH-10] = '\0'; - rb->snprintf(buf,MAX_PATH,"%s ...\0",b); + rb->snprintf(buf,MAX_PATH,"%s ...",b); b[MAX_PATH-10] = t; } else rb->strcpy(buf,b); -- cgit v1.2.3