summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-18 13:53:23 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-18 13:53:23 +0100
commit7a9cbcd88b6cf3c0cbee6d4f76c2adaedc54058d (patch)
tree52dc941c4f25e03f919af117e40b70c64d2ec161
parente0d53880a4f12d2f7f1b134ca1abcc9a6a2bb9e5 (diff)
downloadunitd-7a9cbcd88b6cf3c0cbee6d4f76c2adaedc54058d.tar
unitd-7a9cbcd88b6cf3c0cbee6d4f76c2adaedc54058d.zip
rcS: fix a format string bug
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--rcS.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rcS.c b/rcS.c
index eb1c467..0e1b0ba 100644
--- 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);
}