diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c index de5a60b3022b..2d3099e04f02 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c @@ -774,7 +774,7 @@ snmp_import_object(struct snmp_toolinfo *snmptoolctx) return (-1); } - strlcpy(string, nexttok, strlen(nexttok) + 1); + strlcpy(string, nexttok, nitems(string)); oid2str->string = string; oid2str->strlen = strlen(nexttok);