Commit 8d316b0011abc61f17ddb2cd46de4ae9300fa902

Authored by Robert Reif
Committed by Blue Swirl
1 parent d877fa5a

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>
Showing 1 changed file with 1 additions and 1 deletions
@@ -620,7 +620,7 @@ void net_slirp_redir(Monitor *mon, const char *redir_str) @@ -620,7 +620,7 @@ void net_slirp_redir(Monitor *mon, const char *redir_str)
620 errmsg = "invalid redirection format\n"; 620 errmsg = "invalid redirection format\n";
621 fail: 621 fail:
622 if (mon) { 622 if (mon) {
623 - monitor_printf(mon, errmsg); 623 + monitor_printf(mon, "%s", errmsg);
624 } else { 624 } else {
625 fprintf(stderr, "qemu: %s", errmsg); 625 fprintf(stderr, "qemu: %s", errmsg);
626 exit(1); 626 exit(1);