projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Optimize cmp x, 0 case
[qemu]
/
qemu-sockets.c
diff --git
a/qemu-sockets.c
b/qemu-sockets.c
index
551ef73
..
4111f82
100644
(file)
--- a/
qemu-sockets.c
+++ b/
qemu-sockets.c
@@
-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);