summaryrefslogtreecommitdiff
path: root/usr.sbin/config/gram.y
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 18:39:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 18:39:01 +0000
commitda4b035c00c91f83f53006859ff51cc6316c59fd (patch)
tree5b71ada85fe1e39d042db8b6a28ab5ba06a71408 /usr.sbin/config/gram.y
parent8852a4e96620349bdbb8b1910914433eb4ae5b23 (diff)
more strlcat and strlcpy
Diffstat (limited to 'usr.sbin/config/gram.y')
-rw-r--r--usr.sbin/config/gram.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/config/gram.y b/usr.sbin/config/gram.y
index f616ff61936..3427fc593b2 100644
--- a/usr.sbin/config/gram.y
+++ b/usr.sbin/config/gram.y
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: gram.y,v 1.12 2002/02/16 21:28:01 millert Exp $ */
+/* $OpenBSD: gram.y,v 1.13 2002/05/29 18:39:00 deraadt Exp $ */
/* $NetBSD: gram.y,v 1.14 1997/02/02 21:12:32 thorpej Exp $ */
/*
@@ -457,7 +457,7 @@ setmachine(mch, mcharch)
(void)sprintf(buf, "arch/%s/conf/files.%s",
machinearch, machinearch);
else
- strcpy(buf, _PATH_DEVNULL);
+ strlcpy(buf, _PATH_DEVNULL, sizeof buf);
if (include(buf, ENDFILE) != 0)
exit(1);