From 4af740ac0e286e6b44f8e8129d32f74bd6b1282d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 3 Jun 2015 18:32:13 +0000 Subject: logpost() really requires a format string svn path=/trunk/externals/unauthorized/; revision=17472 --- mp3cast~.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mp3cast~.c') diff --git a/mp3cast~.c b/mp3cast~.c index 7657b62..66194a9 100644 --- a/mp3cast~.c +++ b/mp3cast~.c @@ -368,7 +368,7 @@ static void mp3cast_tilde_lame_init(t_mp3cast *x) #endif /* _WIN32 */ { const char *lameVersion = get_lame_version(); - logpost(NULL, 4, "mp3cast~ : using lame version : %s", lameVersion ); + logpost(NULL, 4, "%s", "mp3cast~ : using lame version : %s", lameVersion ); } @@ -810,7 +810,7 @@ static void mp3cast_mpeg(t_mp3cast *x, t_floatarg fsamplerate, t_floatarg fbitra static void mp3cast_print(t_mp3cast *x) { const char * buf = 0; - logpost(NULL, 4, mp3cast_version); + logpost(NULL, 4, "%s", mp3cast_version); post(" LAME mp3 settings:\n" " output sample rate: %d Hz\n" " bitrate: %d kbit/s", x->x_samplerate, x->x_bitrate); @@ -972,7 +972,7 @@ static void *mp3cast_new(void) void mp3cast_tilde_setup(void) { - logpost(NULL, 4, mp3cast_version); + logpost(NULL, 4, "%s", mp3cast_version); mp3cast_class = class_new(gensym("mp3cast~"), (t_newmethod)mp3cast_new, (t_method)mp3cast_free, sizeof(t_mp3cast), 0, 0); CLASS_MAINSIGNALIN(mp3cast_class, t_mp3cast, x_f ); -- cgit v1.2.1