Fix -Werror=format-security warning (Frederik Himpe/Lennert Buytenhek)
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 28 Dec 2008 13:14:48 +0000 (13:14 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 28 Dec 2008 13:14:48 +0000 (13:14 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6134 c046a42c-6fe2-441c-8c8c-71466251a162

monitor.c

index 8cec8c9..745c335 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -1936,10 +1936,9 @@ static const MonitorDef monitor_defs[] = {
     { NULL },
 };
 
-static void expr_error(const char *fmt)
+static void expr_error(const char *msg)
 {
-    term_printf(fmt);
-    term_printf("\n");
+    term_printf("%s\n", msg);
     longjmp(expr_env, 1);
 }