]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-beep.c
Use more the ND_TTEST_1() macro
[tcpdump] / print-beep.c
index 64a162d7499192523344fd9337b392850bb4a33b..2be7a7b611c963ae464b47faaa7238772454b58d 100644 (file)
@@ -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