From bcc1c69d453d3ac74be6a92ace913235e710e245 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 22 Sep 2020 14:44:03 -0400 Subject: [PATCH] Increase print_addr() buffer size in src/print.c Increase print_addr() buffer size in src/print.c to allow for a nul terminator --- src/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/print.c b/src/print.c index 245fb91..e7e9e71 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_ADDRSTRLEN]; + char buf[PATTY_AX25_ADDRSTRLEN+1]; if (patty_ax25_ntop(addr, buf, sizeof(buf)) < 0) { goto error_ntop;