diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-04 22:45:01 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-05 10:45:44 +0100 |
commit | 03a2d9c4c1e360def4f9d0473f9b378ef2f14431 (patch) | |
tree | a4c461c32a90c3b7b671c0b15edc70ac18be5a36 /print-ascii.c | |
parent | 7e3467df250235e68fea65320a89a5116da85be2 (diff) | |
download | tcpdump-03a2d9c4c1e360def4f9d0473f9b378ef2f14431.tar.gz |
Use more the EXTRACT_U_1() macro (47/n)
In: if (... *(p) ...) ...
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 4ef38a17..151e5c28 100644 --- a/print-ascii.c +++ b/print-ascii.c @@ -46,6 +46,7 @@ #include <stdio.h> #include "netdissect.h" +#include "extract.h" #define ASCII_LINELENGTH 300 #define HEXDUMP_BYTES_PER_LINE 16 @@ -78,7 +79,7 @@ ascii_print(netdissect_options *ndo, * * In the middle of a line, just print a '.'. */ - if (length > 1 && *cp != '\n') + if (length > 1 && EXTRACT_U_1(cp) != '\n') ND_PRINT((ndo, ".")); } else { if (!ND_ISGRAPH(s) && |