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/midi/synth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/midi/synth.c') diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c index 78aaab1..a3a3d60 100644 --- a/apps/plugins/midi/synth.c +++ b/apps/plugins/midi/synth.c @@ -124,7 +124,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig) /* Scan our config file and load the right patches as needed */ int c = 0; - rb->snprintf(name, 40, ""); + name[0] = '\0'; printf("\nLoading instruments"); for(a=0; a<128; a++) { -- cgit v1.1