From: Hauke Mehrtens Date: Sun, 22 Nov 2015 14:45:27 +0000 (+0100) Subject: fix gcc format security error X-Git-Url: http://git.openwrt.org/?p=project%2Fubox.git;a=commitdiff_plain;h=c086167a0154745c677f8730a336ea9cf7d71031 fix gcc format security error Signed-off-by: Hauke Mehrtens --- diff --git a/log/syslog.c b/log/syslog.c index a596b48..e8b6774 100644 --- a/log/syslog.c +++ b/log/syslog.c @@ -66,7 +66,7 @@ log_add(char *buf, int size, int source) /* bounce out if we don't have init'ed yet (regmatch etc will blow) */ if (!log) { - fprintf(stderr, buf); + fprintf(stderr, "%s", buf); return; }