]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-atm.c
Use more the EXTRACT_U_1() macro to fetch a one-byte value (23/n)
[tcpdump] / print-atm.c
index 03c77d45f95bb82d97edbeffa0b9a60dfb0b9145..e2218c4283529d4fe9024362b4f9e825c057da5c 100644 (file)
@@ -358,7 +358,7 @@ sig_print(netdissect_options *ndo,
                ND_PRINT((ndo, "Q.2931"));
                ND_TCHECK(p[MSG_TYPE_POS]);
                ND_PRINT((ndo, ":%s ",
-                   tok2str(msgtype2str, "msgtype#%d", p[MSG_TYPE_POS])));
+                   tok2str(msgtype2str, "msgtype#%d", EXTRACT_U_1(p + MSG_TYPE_POS))));
 
                /*
                 * The call reference comes before the message type,