]> git.proxmox.com Git - qemu.git/blobdiff - qemu-sockets.c
sh4: r2d fix no ide/net case
[qemu.git] / qemu-sockets.c
index 551ef73fe3eacb9ec164c0870ea0ebcee7efb767..4111f82b539e4b778eb26c201bbf9908892a841d 100644 (file)
@@ -107,7 +107,7 @@ int inet_listen(const char *str, char *ostr, int olen,
     /* parse address */
     if (str[0] == ':') {
         /* no host given */
-        strcpy(addr,"");
+        addr[0] = '\0';
         if (1 != sscanf(str,":%32[^,]%n",port,&pos)) {
             fprintf(stderr, "%s: portonly parse error (%s)\n",
                     __FUNCTION__, str);