]> git.sur5r.net Git - bacula/bacula/commitdiff
Apply literal string fix in printf submitted by Luca Berra
authorKern Sibbald <kern@sibbald.com>
Mon, 7 Jun 2010 20:01:56 +0000 (22:01 +0200)
committerKern Sibbald <kern@sibbald.com>
Mon, 7 Jun 2010 20:01:56 +0000 (22:01 +0200)
bacula/src/tray-monitor/tray-monitor.c

index dd5d6644bf94433fb7299cc1452256714f8a5143..cd80b123ea4984fa92170e5cac10d26cb90c10af 100644 (file)
@@ -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);
 }