]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use more the EXTRACT_U_1() macro (48/n)
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 9 Dec 2017 08:26:39 +0000 (09:26 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 9 Dec 2017 08:26:39 +0000 (09:26 +0100)
print-ascii.c

index 151e5c2867a1b7f50892552c1911e38d5b4bb94e..2e5812e4c05eb49098c7b9de6d8730568ad07fee 100644 (file)
@@ -67,7 +67,8 @@ ascii_print(netdissect_options *ndo,
                length = caplength;
        ND_PRINT((ndo, "\n"));
        while (length > 0) {
-               s = *cp++;
+               s = EXTRACT_U_1(cp);
+               cp++;
                length--;
                if (s == '\r') {
                        /*