Fix clang warning.

This commit is contained in:
Wilson Snyder 2020-04-06 20:13:24 -04:00
parent 2abbae8dd0
commit cba05480ba

View File

@ -1517,7 +1517,7 @@ const char* vl_mc_scan_plusargs(const char* prefixp) VL_MT_SAFE {
if (match.empty()) return NULL;
outstr[0] = '\0';
strncat(outstr, match.c_str() + strlen(prefixp) + 1, // +1 to skip the "+"
VL_VALUE_STRING_MAX_WIDTH);
VL_VALUE_STRING_MAX_WIDTH - 1);
return outstr;
}