summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2007-10-04 07:05:02 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2007-10-04 07:05:02 +0000
commit58733c1d19169fd5def7853af2dd6b06be06a448 (patch)
tree04cc065a467d9fd4f22eabf029886ada84061d67 /usr.bin
parenta251cd23b6ba976ba5a03ba8c42c13457d204bd7 (diff)
strncpy -> strlcpy
ok ragge
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/pcc/cc/cc/cc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pcc/cc/cc/cc.c b/usr.bin/pcc/cc/cc/cc.c
index fd9d1ab8225..9318b9cb16a 100644
--- a/usr.bin/pcc/cc/cc/cc.c
+++ b/usr.bin/pcc/cc/cc/cc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cc.c,v 1.17 2007/10/04 06:30:10 gilles Exp $ */
+/* $OpenBSD: cc.c,v 1.18 2007/10/04 07:05:01 gilles Exp $ */
/*
* Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.
*
@@ -306,7 +306,7 @@ main(int argc, char *argv[])
case 'd':
dflag++;
- strncpy(alist, argv[i], 19);
+ strlcpy(alist, argv[i], sizeof (alist));
break;
case 'v':
printf("%s\n", VERSSTR);