diff options
Diffstat (limited to 'net/tap-win32.c')
-rw-r--r-- | net/tap-win32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tap-win32.c b/net/tap-win32.c index 959266c..2a2ba4f 100644 --- a/net/tap-win32.c +++ b/net/tap-win32.c @@ -797,7 +797,8 @@ static int tap_win32_init(NetClientState *peer, const char *model, stored->has_ifname = true; stored->ifname = g_strdup(ifname); - s->nc.info_str = g_strdup_printf("tap: ifname=%s", ifname); + snprintf(s->nc.info_str, sizeof(s->nc.info_str), + "tap: ifname=%s", ifname); s->handle = handle; |