Increase print_addr() buffer size in src/print.c

Increase print_addr() buffer size in src/print.c to allow for a nul
terminator
This commit is contained in:
XANTRONIX Development 2020-09-22 14:44:03 -04:00 committed by XANTRONIX Industrial
parent fbefda6103
commit bcc1c69d45

View file

@ -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;