diff options
author | Thomas Osterried <thomas@osterried.de> | 2010-09-16 19:38:58 +0000 |
---|---|---|
committer | Thomas Osterried <thomas@osterried.de> | 2010-09-16 19:38:58 +0000 |
commit | ba525bdad086dff8647c5d16853596ebfe55d35f (patch) | |
tree | 54f044a41bbd6694c1726e177141b9a2cbcfd0fc /netax25/nrconfig.h | |
parent | e820dc0abd4daa32e2df8c1f306b4d9051f445c0 (diff) |
fix in ax25_aton() and in ax25_aton_arglist() - very old bug:
Stored only 7 of max 8 (AX25_MAX_DIGIS) digipeaters from ascii string
to the struct full_sockaddr_ax25 *fsap.
Why?
int n = 0;
do { ... } while (n < AX25_MAX_DIGIS && *bp);
Everyone should say "oh yes, n = 0; -> do ... while n < MAX_DIGIS".
But: in the loop n is increased by one. Thus only 7 of 8 arguments
hav been copied.
do { ... } while (n <= AX25_MAX_DIGIS && *bp);
fixes this issue.
Diffstat (limited to 'netax25/nrconfig.h')
0 files changed, 0 insertions, 0 deletions