diff options
author | 2007-10-04 07:05:01 +0000 | |
---|---|---|
committer | 2007-10-04 07:05:01 +0000 | |
commit | 1b37134cb6bf2e2dd8850327c5b5763adc537f22 (patch) | |
tree | a3af948269f0062c8cf98d7d23d79a53c39546d5 | |
parent | fix indentation on options parsing (diff) | |
download | wireguard-openbsd-1b37134cb6bf2e2dd8850327c5b5763adc537f22.tar.xz wireguard-openbsd-1b37134cb6bf2e2dd8850327c5b5763adc537f22.zip |
strncpy -> strlcpy
ok ragge
-rw-r--r-- | usr.bin/pcc/cc/cc/cc.c | 4 |
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); |