Skip to content

Commit

Permalink
Issue 550: Remove extra trailing nul for Send Unproto Via.
Browse files Browse the repository at this point in the history
  • Loading branch information
wb2osz committed Oct 18, 2024
1 parent b26c5a4 commit a83a1ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,11 @@ static THREAD_F cmd_listen_thread (void *arg)
break;
}

ax25_set_info (pp, (unsigned char*)p, data_len - ndigi * 10);
// Issue 550: Info part was one byte too long resulting in an extra nul character.
// Original calculation was data_len-ndigi*10 but we need to subtract one
// for first byte which is number of digipeaters.
ax25_set_info (pp, (unsigned char*)p, data_len - ndigi * 10 - 1);

// Issue 527: NET/ROM routing broadcasts use PID 0xCF which was not preserved here.
ax25_set_pid (pp, pid);

Expand Down

0 comments on commit a83a1ca

Please sign in to comment.