chiark / gitweb /
client/tripectl.c: Fix format string bug in tripectl.
[tripe] / client / tripectl.c
index e171b0da8661b79f83a461875cd573f9f9909e56..661e51990c6fa981cc64851abaf63aeb7b25d6b2 100644 (file)
@@ -263,7 +263,7 @@ static void logfile(const char *name)
     else if (logname)
       die(EXIT_FAILURE, d.buf);
     if (f & f_syslog)
-      syslog(LOG_ERR, d.buf);
+      syslog(LOG_ERR, "%s", d.buf);
     dstr_destroy(&d);
   }
 }