r62: close possible format string attack
[nbd.git] / cliserv.h
index 5d6dc48..ebcb036 100644 (file)
--- a/cliserv.h
+++ b/cliserv.h
@@ -97,7 +97,7 @@ void err(const char *s)
 
        s1[maxlen-1] = '\0';
 #ifdef ISSERVER
-       syslog(LOG_ERR, s1);
+       syslog(LOG_ERR, "%s", s1);
 #else
        fprintf(stderr, "Error: %s\n", s1);
 #endif