diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 11:40:36 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 11:46:15 +0100 |
commit | 1cfd6cd2ac8acecbcf16e083a6cd272a19ec994e (patch) | |
tree | 0b4481667ad1bab77665e54d07f787c8244c633e /print-fr.c | |
parent | ef3437c081dd78bd51fad6ed0d6af58dcfaabd69 (diff) | |
download | tcpdump-1cfd6cd2ac8acecbcf16e083a6cd272a19ec994e.tar.gz |
Use more the EXTRACT_U_1() macro (51/n)
Moreover: Use more the ND_ISPRINT() macro.
Diffstat (limited to 'print-fr.c')
-rw-r--r-- | print-fr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -499,7 +499,7 @@ mfr_print(netdissect_options *ndo, case MFR_CTRL_IE_BUNDLE_ID: /* same message format */ case MFR_CTRL_IE_LINK_ID: for (idx = 0; idx < ie_len && idx < MFR_ID_STRING_MAXLEN; idx++) { - if (*(tptr+idx) != 0) /* don't print null termination */ + if (EXTRACT_U_1(tptr + idx) != 0) /* don't print null termination */ safeputchar(ndo, EXTRACT_U_1(tptr + idx)); else break; |