rcS: fix a format string bug
authorFelix Fietkau <nbd@openwrt.org>
Tue, 18 Mar 2014 12:53:23 +0000 (13:53 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 18 Mar 2014 12:53:23 +0000 (13:53 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
rcS.c

diff --git a/rcS.c b/rcS.c
index eb1c46789b02ae21e06231c4ea64cc8ae349ee29..0e1b0ba979b0a0a79f1ac907dc0b5e2791edc733 100644 (file)
--- a/rcS.c
+++ b/rcS.c
@@ -54,7 +54,7 @@ static void pipe_cb(struct ustream *s, int bytes)
                        break;
                *newline = 0;
                len = newline + 1 - str;
-               syslog(0, str);
+               syslog(0, "%s", str);
                ustream_consume(s, len);
        } while (1);
 }