diff --git a/include/patty/ax25.h b/include/patty/ax25.h index be6006b..a52c8e9 100644 --- a/include/patty/ax25.h +++ b/include/patty/ax25.h @@ -10,7 +10,7 @@ #include #define PATTY_AX25_CALLSIGN_LEN 6 -#define PATTY_AX25_ADDRESS_LEN (PATTY_AX25_CALLSIGN_LEN + 3) +#define PATTY_AX25_ADDRSTRLEN (PATTY_AX25_CALLSIGN_LEN + 3) #define PATTY_AX25_IF_NAME_SIZE 8 #define PATTY_AX25_MAX_HOPS 8 #define PATTY_AX25_SOCK_PATH_SIZE 256 diff --git a/src/print.c b/src/print.c index 0f7393c..6e62b1c 100644 --- a/src/print.c +++ b/src/print.c @@ -44,7 +44,7 @@ static char *frame_cr(enum patty_ax25_frame_cr cr) { } static int print_addr(FILE *fh, const patty_ax25_addr *addr) { - char buf[PATTY_AX25_ADDRESS_LEN]; + char buf[PATTY_AX25_ADDRSTRLEN]; if (patty_ax25_ntop(addr, buf, sizeof(buf)) < 0) { goto error_ntop;