From 2c3a461ee941470024d4e14315e0d8a3f0f6c362 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 13 Sep 2020 16:38:45 -0400 Subject: [PATCH] PATTY_AX25_ADDRESS_LEN -> PATTY_AX25_ADDRSTRLEN --- include/patty/ax25.h | 2 +- src/print.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;