fix net.c compile warning
authorRobert Reif <reif@earthlink.net>
Mon, 27 Apr 2009 17:11:36 +0000 (17:11 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Mon, 27 Apr 2009 17:11:36 +0000 (17:11 +0000)
Fix net.c compile warning:

CC net.o
net.c: In function \91net_slirp_redir\92:
net.c:623: warning: format not a string literal and no format arguments

Signed-off-by: Robert Reif <reif@earthlink.net>

net.c

diff --git a/net.c b/net.c
index db2f8d3..7ae1e6d 100644 (file)
--- 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);