From 8d316b0011abc61f17ddb2cd46de4ae9300fa902 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Mon, 27 Apr 2009 17:11:36 +0000 Subject: [PATCH] fix net.c compile warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix net.c compile warning: CC net.o net.c: In function ‘net_slirp_redir’: net.c:623: warning: format not a string literal and no format arguments Signed-off-by: Robert Reif --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index db2f8d3..7ae1e6d 100644 --- a/net.c +++ b/net.c @@ -620,7 +620,7 @@ void net_slirp_redir(Monitor *mon, const char *redir_str) errmsg = "invalid redirection format\n"; fail: if (mon) { - monitor_printf(mon, errmsg); + monitor_printf(mon, "%s", errmsg); } else { fprintf(stderr, "qemu: %s", errmsg); exit(1); -- 1.7.9.5