diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-27 00:41:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-27 00:41:49 +0000 |
commit | 825d9636e97ff5acb436f8f48d1ee16629df196a (patch) | |
tree | c251e04d36e4b18c24cf5ec86bbc6fe810d1ac45 /usr.sbin/rtadvd | |
parent | 45406a72b5dbd8b8a8f39a79fe8c565682f6d4c4 (diff) |
string cleaning; from tdeval and tedu
Diffstat (limited to 'usr.sbin/rtadvd')
-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); } |