Skip to content

Commit

Permalink
Check index.
Browse files Browse the repository at this point in the history
  • Loading branch information
wb2osz committed Oct 29, 2024
1 parent 44f576c commit 5736b0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/igate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,8 @@ void igate_send_rec_packet (int chan, packet_t recv_pp)
* Inputs: pp - Packet object.
*
* chan - Radio channel where it was received.
* This will be -1 if from a beacon with sendto=ig
* so be careful if using as subscript.
*
* Description: Duplicate detection is handled here.
* Suppress if same was sent recently.
Expand Down Expand Up @@ -1141,7 +1143,7 @@ static void send_packet_to_server (packet_t pp, int chan)
strlcat (msg, ",qAO,", sizeof(msg)); // new for version 1.4.
}

strlcat (msg, save_audio_config_p->mycall[chan], sizeof(msg));
strlcat (msg, save_audio_config_p->mycall[chan>=0 ? chan : 0], sizeof(msg));
strlcat (msg, ":", sizeof(msg));


Expand Down

0 comments on commit 5736b0f

Please sign in to comment.