summaryrefslogtreecommitdiffstats
path: root/src/sh_port2proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sh_port2proc.c')
-rw-r--r--src/sh_port2proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sh_port2proc.c b/src/sh_port2proc.c
index 61357f1..7289ef8 100644
--- a/src/sh_port2proc.c
+++ b/src/sh_port2proc.c
@@ -634,7 +634,7 @@ static void * xrealloc(void * buf, size_t len0, size_t len)
if (len0 <= len)
memcpy(xbuf, buf, len0);
else
- memset(xbuf, '\0', len);
+ memset(xbuf, 0, len);
SH_FREE(buf);
}
return xbuf;
@@ -822,7 +822,7 @@ gather_inet(int proto)
}
sock = SH_ALLOC(sizeof *sock);
- memset(sock, '\0', sizeof (*sock));
+ memset(sock, 0, sizeof (*sock));
#ifndef in6p_lport
#define in6p_lport inp_lport