diff gui/interface.c @ 36644:8d39d6874ec0

Do not use non-literal arguments for mp_msg format string Make the code easier to review and more robust against future changes. Fix ticket #2173
author al
date Sun, 26 Jan 2014 04:14:23 +0000
parents ed153683310d
children 1506e7359613
line wrap: on
line diff
--- a/gui/interface.c	Sat Jan 25 16:55:12 2014 +0000
+++ b/gui/interface.c	Sun Jan 26 04:14:23 2014 +0000
@@ -1183,7 +1183,7 @@
     vsnprintf(msg, sizeof(msg), format, va);
     va_end(va);
 
-    mp_msg(mod, lev, msg);
+    mp_msg(mod, lev, "%s", msg);
 
     if (mp_msg_test(mod, lev))
         gtkMessageBox(MSGBOX_FATAL, msg);