diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2016-05-14 22:40:35 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2016-05-14 22:40:35 +0000 |
commit | 896f12fec1e77f6d76fa480362144efe32d9bec2 (patch) | |
tree | 4c24510bba0dac7ded13c95d6553b22b4b147979 /usr.sbin/bsnmpd/tools | |
parent | 562c5a82cbb661cf8262613ce5bb06966af37d06 (diff) | |
download | src-test2-896f12fec1e77f6d76fa480362144efe32d9bec2.tar.gz src-test2-896f12fec1e77f6d76fa480362144efe32d9bec2.zip |
Notes
Diffstat (limited to 'usr.sbin/bsnmpd/tools')
-rw-r--r-- | usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c index 4206c9ff4580..175e66076e95 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c @@ -282,7 +282,7 @@ enum_pair_insert(struct enum_pairs *headp, int32_t enum_val, char *enum_str) } e_new->enum_val = enum_val; - strlcpy(e_new->enum_str, enum_str, strlen(enum_str) + 1); + strlcpy(e_new->enum_str, enum_str, nitems(e_new->enum_str)); STAILQ_INSERT_TAIL(headp, e_new, link); return (1); @@ -568,7 +568,7 @@ snmp_enumtc_init(char *name) free(enum_tc); return (NULL); } - strlcpy(enum_tc->name, name, strlen(name) + 1); + strlcpy(enum_tc->name, name, nitems(enum_tc->name)); return (enum_tc); } |