summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getopt.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-18 01:10:13 +0000
committerbrian <brian@FreeBSD.org>1997-12-18 01:10:13 +0000
commitad6dc08636347bbd8aebe3658eabf43dadb4aa90 (patch)
treeaafc13d009a2e0a3d0723158fd0477a09d74d91e /lib/libc/stdlib/getopt.c
parent71fc17164f9d8dcc7f930336a677c5601e0255dd (diff)
downloadFreeBSD-src-ad6dc08636347bbd8aebe3658eabf43dadb4aa90.zip
FreeBSD-src-ad6dc08636347bbd8aebe3658eabf43dadb4aa90.tar.gz
Replace
strcpy(a, b); /* a and b are the same size */ with strncpy(a, b, sizeof(a)); a[sizeof(a)-1] = '\0'; Making the code `correct at a glance'. Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
Diffstat (limited to 'lib/libc/stdlib/getopt.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud