From 9d9c5e05b6b360b967098acf25c1a97fe89e8c6b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 22 Jan 2013 19:10:54 +0000 Subject: fix format-security warnings svn path=/trunk/externals/miXed/; revision=16964 --- shared/common/loud.c | 6 +++--- shared/common/mifi.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/common/loud.c b/shared/common/loud.c index d21334e..8183027 100644 --- a/shared/common/loud.c +++ b/shared/common/loud.c @@ -71,7 +71,7 @@ void loud_error(t_pd *x, char *fmt, ...) if (x) { startpost("%s's ", class_getname(*x)); - pd_error(x, buf); + pd_error(x, "%s", buf); } else post("%s %s", LOUD_ERROR_DEFAULT, buf); va_end(ap); @@ -225,7 +225,7 @@ void loudx_error(t_loudcontext *lc, char *fmt, ...) { startpost("%s's ", (lc->lc_callername ? lc->lc_callername : class_getname(*lc->lc_caller))); - pd_error(lc->lc_caller, buf); + pd_error(lc->lc_caller, "%s", buf); } else { @@ -442,5 +442,5 @@ void loudbug_bug(char *fmt, ...) #ifdef _WIN32 fflush(stderr); #endif - bug(buf); + bug("%s", buf); } diff --git a/shared/common/mifi.c b/shared/common/mifi.c index 2e216f5..8550891 100644 --- a/shared/common/mifi.c +++ b/shared/common/mifi.c @@ -216,7 +216,7 @@ static void mifi_error(t_pd *x, char *fmt, ...) if (x) { startpost("%s's ", class_getname(*x)); - pd_error(x, buf); + pd_error(x, "%s", buf); } else post("mifi error: %s", buf); va_end(ap); -- cgit v1.2.1