diff options
Diffstat (limited to 'net/vde.c')
-rw-r--r-- | net/vde.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -100,7 +100,8 @@ static int net_vde_init(NetClientState *peer, const char *model, nc = qemu_new_net_client(&net_vde_info, peer, model, name); - nc->info_str = g_strdup_printf("sock=%s,fd=%d", sock, vde_datafd(vde)); + snprintf(nc->info_str, sizeof(nc->info_str), "sock=%s,fd=%d", + sock, vde_datafd(vde)); s = DO_UPCAST(VDEState, nc, nc); |