summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--axutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/axutils.c b/axutils.c
index f6e8713..f33d543 100644
--- a/axutils.c
+++ b/axutils.c
@@ -108,7 +108,7 @@ int ax25_aton(const char *call, struct full_sockaddr_ax25 *sax)
else
addrp += sizeof(ax25_address);
- } while (n < AX25_MAX_DIGIS && *bp);
+ } while (n <= AX25_MAX_DIGIS && *bp);
free(tmp);
@@ -148,7 +148,7 @@ int ax25_aton_arglist(const char *call[], struct full_sockaddr_ax25 *sax)
else
addrp += sizeof(ax25_address);
- } while (n < AX25_MAX_DIGIS && call[argp] != NULL);
+ } while (n <= AX25_MAX_DIGIS && call[argp] != NULL);
/* Tidy up */
sax->fsa_ax25.sax25_ndigis = n - 1;