From 1a90fd99d279d63242419a30ba3e0720872bff75 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Sun, 26 Nov 2017 13:02:48 +0100 Subject: Use more the EXTRACT_U_1() macro (28/n) In ND_PRINT() macro call(s) (step 7). p[n] ... --- print-bfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-bfd.c') diff --git a/print-bfd.c b/print-bfd.c index 74030d03..feea837e 100644 --- a/print-bfd.c +++ b/print-bfd.c @@ -248,7 +248,7 @@ auth_print(netdissect_options *ndo, register const u_char *pptr) ND_TCHECK2(*pptr, AUTH_MD5_HASH_LEN); ND_PRINT((ndo, "\n\t Digest: ")); for(i = 0; i < AUTH_MD5_HASH_LEN; i++) - ND_PRINT((ndo, "%02x", pptr[i])); + ND_PRINT((ndo, "%02x", EXTRACT_U_1(pptr + i))); break; case AUTH_SHA1: case AUTH_MET_SHA1: @@ -279,7 +279,7 @@ auth_print(netdissect_options *ndo, register const u_char *pptr) ND_TCHECK2(*pptr, AUTH_SHA1_HASH_LEN); ND_PRINT((ndo, "\n\t Hash: ")); for(i = 0; i < AUTH_SHA1_HASH_LEN; i++) - ND_PRINT((ndo, "%02x", pptr[i])); + ND_PRINT((ndo, "%02x", EXTRACT_U_1(pptr + i))); break; } return 0; -- cgit v1.2.1