diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 09:56:29 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 09:56:29 +0100 |
commit | 3a7639e545c0543bcec19c4321dd3ba397fbe6fa (patch) | |
tree | 44decbbcb2ea9fd9aff7d0b86a4698a2b74a4fea /print-pppoe.c | |
parent | 58010245a5c050e543862c068d1f182fc70623c7 (diff) | |
download | tcpdump-3a7639e545c0543bcec19c4321dd3ba397fbe6fa.tar.gz |
Use more the EXTRACT_U_1() macro (49/n)
Assignment, *(p)
Diffstat (limited to 'print-pppoe.c')
-rw-r--r-- | print-pppoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-pppoe.c b/print-pppoe.c index 39d41700..f1fedc75 100644 --- a/print-pppoe.c +++ b/print-pppoe.c @@ -157,7 +157,7 @@ pppoe_print(netdissect_options *ndo, register const u_char *bp, u_int length) ND_TCHECK2(*p, tag_len); for (v = p; v < p + tag_len && tag_str_len < MAXTAGPRINT-1; v++) if (*v >= 32 && *v < 127) { - tag_str[tag_str_len++] = *v; + tag_str[tag_str_len++] = EXTRACT_U_1(v); ascii_count++; } else { tag_str[tag_str_len++] = '.'; |