aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 19:10:54 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 19:10:54 +0000
commit9d9c5e05b6b360b967098acf25c1a97fe89e8c6b (patch)
tree63a084c0af19e50ce2a95d8d82a1a95d8a8e799b
parente74e00155cd9ce837c3aa18bc817b9b0d065a1dc (diff)
fix format-security warnings
svn path=/trunk/externals/miXed/; revision=16964
-rw-r--r--shared/common/loud.c6
-rw-r--r--shared/common/mifi.c2
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);