From: Francois-Xavier Le Bail Date: Sat, 9 Dec 2017 08:26:39 +0000 (+0100) Subject: Use more the EXTRACT_U_1() macro (48/n) X-Git-Tag: tcpdump-4.99-bp~1663 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/58010245a5c050e543862c068d1f182fc70623c7 Use more the EXTRACT_U_1() macro (48/n) --- diff --git a/print-ascii.c b/print-ascii.c index 151e5c28..2e5812e4 100644 --- a/print-ascii.c +++ b/print-ascii.c @@ -67,7 +67,8 @@ ascii_print(netdissect_options *ndo, length = caplength; ND_PRINT((ndo, "\n")); while (length > 0) { - s = *cp++; + s = EXTRACT_U_1(cp); + cp++; length--; if (s == '\r') { /*