X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fstring.h;h=db09c5084470e39aca669cbef721667c32845507;hb=b5a2b05327c1a2bbb23dbb7131cc1be6c0db5e67;hp=0d2c0655c5031a4289bd2ae79089370e0d84cf53;hpb=03d0fbe3c11c8d21c347979e30b7bdcf232536aa;p=vpp.git diff --git a/src/vppinfra/string.h b/src/vppinfra/string.h index 0d2c0655c50..db09c508447 100644 --- a/src/vppinfra/string.h +++ b/src/vppinfra/string.h @@ -1395,7 +1395,7 @@ strstr_s_inline (char *s1, rsize_t s1max, const char *s2, rsize_t s2max, clib_c11_violation ("substring NULL"); if (s1 && s1max && (s1[clib_strnlen (s1, s1max)] != '\0')) clib_c11_violation ("s1 unterminated"); - if (s2 && s2max && (s2[clib_strnlen (s2, s1max)] != '\0')) + if (s2 && s2max && (s2[clib_strnlen (s2, s2max)] != '\0')) clib_c11_violation ("s2 unterminated"); return EINVAL; }