diff options
author | brian <brian@FreeBSD.org> | 1997-12-18 01:10:13 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-12-18 01:10:13 +0000 |
commit | ad6dc08636347bbd8aebe3658eabf43dadb4aa90 (patch) | |
tree | aafc13d009a2e0a3d0723158fd0477a09d74d91e /lib/libc/stdlib/getopt.c | |
parent | 71fc17164f9d8dcc7f930336a677c5601e0255dd (diff) | |
download | FreeBSD-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