summaryrefslogtreecommitdiff
path: root/lib/libutil/getmaxpartitions.3
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1997-12-18 01:10:27 +0000
committerbrian <brian@cvs.openbsd.org>1997-12-18 01:10:27 +0000
commit2fcde60e0f33befff25fc6c3e2a2010c923a704b (patch)
tree42d57f293073052cdff0914e7f8c6c3a38a33327 /lib/libutil/getmaxpartitions.3
parent5926ec4d15989689aa36f550da3212dcbc424cb3 (diff)
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/libutil/getmaxpartitions.3')
0 files changed, 0 insertions, 0 deletions