diff --git a/src/decode.c b/src/decode.c index f6ac1f4..dda3722 100644 --- a/src/decode.c +++ b/src/decode.c @@ -32,42 +32,57 @@ static int callsign_fprint(FILE *stream, const patty_ax25_address *address) { return 0; } +#define printable(c) \ + (c >= 0x20 && c < 0x7f) + static int hexdump_fprint(FILE *stream, void *data, size_t len) { size_t i; - for (i=0; i