diff options
author | 2003-04-27 00:41:48 +0000 | |
---|---|---|
committer | 2003-04-27 00:41:48 +0000 | |
commit | feefc4083f642ab3f405ba717df2a7d379b73fd9 (patch) | |
tree | ce0d038d14a3fe71f3b66992457cb1eb3eecf03e | |
parent | this -Werror stuff is ... let me be polite... fucking garbage (diff) | |
download | wireguard-openbsd-feefc4083f642ab3f405ba717df2a7d379b73fd9.tar.xz wireguard-openbsd-feefc4083f642ab3f405ba717df2a7d379b73fd9.zip |
string cleaning; from tdeval and tedu
-rw-r--r-- | usr.sbin/rtadvd/advcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rtadvd/advcap.c b/usr.sbin/rtadvd/advcap.c index 62cd5321cfb..5658ecc83d8 100644 --- a/usr.sbin/rtadvd/advcap.c +++ b/usr.sbin/rtadvd/advcap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: advcap.c,v 1.8 2002/06/10 19:57:35 espie Exp $ */ +/* $OpenBSD: advcap.c,v 1.9 2003/04/27 00:41:48 deraadt Exp $ */ /* $KAME: advcap.c,v 1.9 2002/05/29 14:28:35 itojun Exp $ */ /* @@ -224,7 +224,7 @@ tnchktc() write(2, "Remcap entry too long\n", 23); q[BUFSIZ - (p-holdtbuf)] = 0; } - strcpy(p, q); + strlcpy(p, q, holdtbuf + BUFSIZ - p); tbuf = holdtbuf; return (1); } |