]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ldp.c
Use more the EXTRACT_U_1() macro (35/n)
[tcpdump] / print-ldp.c
index 5a7608b938dcb98e27e1b1c04eab28da3a34963b..1131fe55c47533536ef35cb469c2fc82659c0e82 100644 (file)
@@ -441,7 +441,7 @@ ldp_tlv_print(netdissect_options *ndo,
                 case LDP_FEC_MARTINI_IFPARM_DESC:
                     ND_PRINT((ndo, ": "));
                     for (idx = 2; idx < vc_info_tlv_len; idx++)
-                        safeputchar(ndo, *(tptr + idx));
+                        safeputchar(ndo, EXTRACT_U_1(tptr + idx));
                     break;
 
                 case LDP_FEC_MARTINI_IFPARM_VCCV: