summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/rtadvd/advcap.c4
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);
}