From: Michal Sojka Date: Sun, 2 Aug 2020 18:52:17 +0000 (+0200) Subject: mt_server: Use "%s" format string in syslog() X-Git-Url: https://rtime.felk.cvut.cz/gitweb/coffee/mt-apps.git/commitdiff_plain?ds=sidebyside mt_server: Use "%s" format string in syslog() This fixes potential security problem reported by -Werror=format-security: error: format not a string literal and no format arguments --- diff --git a/mt_server.c b/mt_server.c index ee80d87..3b617bd 100644 --- a/mt_server.c +++ b/mt_server.c @@ -229,7 +229,7 @@ static void fd_cb(EV_P_ ev_io *w_, int revents) mt_blank_wake(); #endif *pos = 0; - syslog(LOG_INFO, w->text); + syslog(LOG_INFO, "%s", w->text); char *line = new_line(); if (line) { if (list_add(w->lines, w->text) == 0) {