diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 09:26:39 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 09:26:39 +0100 |
commit | 58010245a5c050e543862c068d1f182fc70623c7 (patch) | |
tree | 83636d8e45673c9502cbb4a5aceedfd82352047a /print-ascii.c | |
parent | 29517faf6cf8d1a2cdcfeb61f4d561397d5f531e (diff) | |
download | tcpdump-58010245a5c050e543862c068d1f182fc70623c7.tar.gz |
Use more the EXTRACT_U_1() macro (48/n)
Diffstat (limited to 'print-ascii.c')
-rw-r--r-- | print-ascii.c | 3 |
1 files changed, 2 insertions, 1 deletions
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') { /* |