diff options
author | truckman <truckman@FreeBSD.org> | 2017-04-27 07:32:07 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2017-04-27 07:32:07 +0000 |
commit | eae5c4881723780e3c97cd05ec06fe55bc8f0c45 (patch) | |
tree | 98bdb75cdee65de8546e812c1e059a4ff940fa61 /sys/kern/subr_pctrie.c | |
parent | e155e5ae7c337c6cd0a26de3644aaa5cb55deff9 (diff) | |
download | FreeBSD-src-eae5c4881723780e3c97cd05ec06fe55bc8f0c45.zip FreeBSD-src-eae5c4881723780e3c97cd05ec06fe55bc8f0c45.tar.gz |
MFC r316777 (by cem)
dummynet: Use strlcpy to appease static checkers
Some dummynet modules used strcpy() to copy from a larger buffer
(dn_aqm->name) to a smaller buffer (dn_extra_parms->name). It happens that
the lengths of the strings in the dn_aqm buffers were always hardcoded to be
smaller than the dn_extra_parms buffer ("CODEL", "PIE").
Use strlcpy() instead, to appease static checkers. No functional change.
Reported by: Coverity
CIDs: 1356163, 1356165
Sponsored by: Dell EMC Isilon
Diffstat (limited to 'sys/kern/subr_pctrie.c')
0 files changed, 0 insertions, 0 deletions