aboutsummaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRobert Reif <reif@earthlink.net>2009-04-27 17:11:36 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-04-27 17:11:36 +0000
commit8d316b0011abc61f17ddb2cd46de4ae9300fa902 (patch)
treeb40354da96925654d5d4e6c3dc1386fe013f6c9e /net.c
parentd877fa5a172e761f83397388826a323a9d6ac007 (diff)
fix net.c compile warning
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 <reif@earthlink.net>
Diffstat (limited to 'net.c')
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index db2f8d345..7ae1e6d60 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);