diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-30 21:34:15 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-30 21:34:15 +0000 |
commit | 3f423c9c8fe197af5fa3b5945bc7d3f3ceec3512 (patch) | |
tree | 650548f19383a1af71838d9cc29add21a75ecea7 /vl.c | |
parent | 7f881e5674f9a3839e454436ed6c1c5ca3a6b757 (diff) |
removed warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1871 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -3132,9 +3132,7 @@ int net_client_init(const char *str) #ifdef CONFIG_SLIRP if (!strcmp(device, "user")) { if (get_param_value(buf, sizeof(buf), "hostname", p)) { - if (strlen(buf) > 32) - buf[32] = 0; - strcpy(slirp_hostname, buf); + pstrcpy(slirp_hostname, sizeof(slirp_hostname), buf); } ret = net_slirp_init(vlan); } else |