summaryrefslogtreecommitdiff
path: root/print-fr.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 11:40:36 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 11:46:15 +0100
commit1cfd6cd2ac8acecbcf16e083a6cd272a19ec994e (patch)
tree0b4481667ad1bab77665e54d07f787c8244c633e /print-fr.c
parentef3437c081dd78bd51fad6ed0d6af58dcfaabd69 (diff)
downloadtcpdump-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-fr.c b/print-fr.c
index c8415e12..8c8bf781 100644
--- a/print-fr.c
+++ b/print-fr.c
@@ -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;