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:
parent
fbefda6103
commit
bcc1c69d45
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue