From: Kern Sibbald Date: Mon, 7 Jun 2010 20:01:56 +0000 (+0200) Subject: Apply literal string fix in printf submitted by Luca Berra X-Git-Tag: Release-5.0.3~162 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1714b945a5384c7182bd3ab3d0a36423baec1850;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); }