From 1714b945a5384c7182bd3ab3d0a36423baec1850 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 7 Jun 2010 22:01:56 +0200 Subject: [PATCH] Apply literal string fix in printf submitted by Luca Berra --- bacula/src/tray-monitor/tray-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5