strlcpy
This commit is contained in:
parent
3d2b0dbc0e
commit
3f62dc6d24
4
crypto/dist/kame/racoon/var.h
vendored
4
crypto/dist/kame/racoon/var.h
vendored
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user