Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/kame/racoon strlcpy
details: https://anonhg.NetBSD.org/src/rev/a6cdd65cfe5d
branches: trunk
changeset: 547372:a6cdd65cfe5d
user: itojun <itojun%NetBSD.org@localhost>
date: Sat May 17 18:19:20 2003 +0000
description:
strlcpy
diffstat:
crypto/dist/kame/racoon/var.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 6cd71af24394 -r a6cdd65cfe5d crypto/dist/kame/racoon/var.h
--- a/crypto/dist/kame/racoon/var.h Sat May 17 18:13:55 2003 +0000
+++ b/crypto/dist/kame/racoon/var.h Sat May 17 18:19:20 2003 +0000
@@ -76,9 +76,9 @@
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);
Home |
Main Index |
Thread Index |
Old Index