rcS: fix a format string bug
[project/procd.git] / rcS.c
diff --git a/rcS.c b/rcS.c
index eb1c467..0e1b0ba 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);
 }