Commit 60cbfb95522b33c3ec1dd4fa32da261c6c3d6a9d

Authored by blueswir1
1 parent bd89f43f

Fix -Werror=format-security warning (Frederik Himpe/Lennert Buytenhek)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6134 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 3 deletions
monitor.c
@@ -1936,10 +1936,9 @@ static const MonitorDef monitor_defs[] = { @@ -1936,10 +1936,9 @@ static const MonitorDef monitor_defs[] = {
1936 { NULL }, 1936 { NULL },
1937 }; 1937 };
1938 1938
1939 -static void expr_error(const char *fmt) 1939 +static void expr_error(const char *msg)
1940 { 1940 {
1941 - term_printf(fmt);  
1942 - term_printf("\n"); 1941 + term_printf("%s\n", msg);
1943 longjmp(expr_env, 1); 1942 longjmp(expr_env, 1);
1944 } 1943 }
1945 1944