]> The Tcpdump Group git mirrors - tcpdump/commitdiff
AppleTalk: Filter out non-printable characters
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 28 Feb 2018 14:10:54 +0000 (15:10 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 28 Feb 2018 14:13:00 +0000 (15:13 +0100)
Use fn_print_char().

print-atalk.c

index 3cd04177b4f276f62a7cf66b4ca384a15014d628..0e0ab00301bb27e2990cbe7838628d1a46824dca 100644 (file)
@@ -499,7 +499,7 @@ print_cstring(netdissect_options *ndo,
                        ND_PRINT("%s", tstr);
                        return (0);
                }
-               ND_PRINT("%c", EXTRACT_U_1(cp));
+               fn_print_char(ndo, EXTRACT_U_1(cp));
                cp++;
                length--;
        }