From: Francois-Xavier Le Bail Date: Tue, 2 Jan 2018 15:16:02 +0000 (+0100) Subject: Use more the ND_TCHECK_1() macro X-Git-Tag: tcpdump-4.99-bp~1512 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/c6a0c105334b262707361884d682a5fdfb4cc11d Use more the ND_TCHECK_1() macro --- diff --git a/print-resp.c b/print-resp.c index 1d24b58e..5e5bde0d 100644 --- a/print-resp.c +++ b/print-resp.c @@ -116,7 +116,7 @@ static int resp_get_length(netdissect_options *, const u_char *, int, const u_ch #define FIND_CR_OR_LF(_ptr, _len) \ for (;;) { \ LCHECK(_len); \ - ND_TCHECK(*_ptr); \ + ND_TCHECK_1(_ptr); \ if (*_ptr == '\r' || *_ptr == '\n') \ break; \ _ptr++; \ diff --git a/print-telnet.c b/print-telnet.c index 41e24462..c65b48fb 100644 --- a/print-telnet.c +++ b/print-telnet.c @@ -397,7 +397,7 @@ telnet_parse(netdissect_options *ndo, const u_char *sp, u_int length, int print) do { \ if (length < 1) \ goto pktend; \ - ND_TCHECK(*sp); \ + ND_TCHECK_1(sp); \ c = *sp++; \ length--; \ } while (0)