This commit is contained in:
itojun 2003-05-17 18:19:20 +00:00
parent 3d2b0dbc0e
commit 3f62dc6d24

View File

@ -76,9 +76,9 @@ do { \
if (getnameinfo((x), (x)->sa_len, (y), sizeof(y), (z), sizeof(z), \
NIFLAGS) != 0) { \
if (y) \
strncpy((y), "(invalid)", sizeof(y)); \
strlcpy((y), "(invalid)", sizeof(y)); \
if (z) \
strncpy((z), "(invalid)", sizeof(z)); \
strlcpy((z), "(invalid)", sizeof(z)); \
} \
} while (0);