Commit 8d316b0011abc61f17ddb2cd46de4ae9300fa902
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
net.c
| ... | ... | @@ -620,7 +620,7 @@ void net_slirp_redir(Monitor *mon, const char *redir_str) |
| 620 | 620 | errmsg = "invalid redirection format\n"; |
| 621 | 621 | fail: |
| 622 | 622 | if (mon) { |
| 623 | - monitor_printf(mon, errmsg); | |
| 623 | + monitor_printf(mon, "%s", errmsg); | |
| 624 | 624 | } else { |
| 625 | 625 | fprintf(stderr, "qemu: %s", errmsg); |
| 626 | 626 | exit(1); | ... | ... |