From: Kern Sibbald Date: Mon, 7 Jun 2010 20:04:07 +0000 (+0200) Subject: Apply literal string fix in printf submitted by Luca Berra X-Git-Tag: Release-5.2.1~1309 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b0a108c5cdbbff1b502afaaefa22bae588c1f132;p=bacula%2Fbacula Apply literal string fix in printf submitted by Luca Berra --- diff --git a/bacula/src/tray-monitor/tray-monitor.c b/bacula/src/tray-monitor/tray-monitor.c index dd5d6644bf..cd80b123ea 100644 --- a/bacula/src/tray-monitor/tray-monitor.c +++ b/bacula/src/tray-monitor/tray-monitor.c @@ -1078,7 +1078,7 @@ void trayMessage(const char *fmt,...) bvsnprintf(buf, sizeof(buf), (char *)fmt, arg_ptr); va_end(arg_ptr); - fprintf(stderr, buf); + fprintf(stderr, "%s", buf); // gtk_tray_icon_send_message(gtk_status_icon_get_tray_icon(mTrayIcon), 5000, (const char*)&buf, -1); }