X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/877b66b398518d9501513e0860c9f3a8acc70892..1a04b92e365f5ed01ca38619b41bcc4fc9cbd63c:/print-beep.c?ds=sidebyside diff --git a/print-beep.c b/print-beep.c index 64a162d7..2be7a7b6 100644 --- a/print-beep.c +++ b/print-beep.c @@ -31,7 +31,7 @@ static int l_strnstart(netdissect_options *ndo, const char *tstr1, u_int tl1, const char *str2, u_int l2) { - if (!ND_TTEST2(*str2, tl1)) { + if (!ND_TTEST_LEN(str2, tl1)) { /* * We don't have tl1 bytes worth of captured data * for the string, so we can't check for this