Use strcpy, not strcat.

This commit is contained in:
Sam Hocevar
2009-08-06 20:40:35 +00:00
committed by sam
parent 920ac1ae40
commit c586a72c73
+1 -1
View File
@@ -398,7 +398,7 @@ RECV_T NEW(recvfrom)(int s, void *buf, size_t len, int flags,
if (fromlen)
sprintf(tmp, "&%i", (int)*fromlen);
else
strcat(tmp, "NULL");
strcpy(tmp, "NULL");
if (ret >= 4)
debug("%s(%i, %p, %li, 0x%x, %p, %s) = %i \"%c%c%c%c...",