fix gcc format security error
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Nov 2015 14:45:27 +0000 (15:45 +0100)
committerJohn Crispin <blogic@openwrt.org>
Sun, 22 Nov 2015 15:37:39 +0000 (16:37 +0100)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
log/syslog.c

index a596b487af4c46458424b5478917857da8fb686f..e8b6774afd31080c107ae7c8277b2700efb5d7cf 100644 (file)
@@ -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;
        }