Skip to content
Snippets Groups Projects
Commit 3bfa626d authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix erroneous error message

Subpacket OVERFLOW means received subpacket byte offset is >= the max subpacket length.
parent 7696a52f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -848,7 +848,7 @@ int zmodem_recv_data32(zmodem_t* zm, unsigned char * p, unsigned maxlen, unsigne
break;
if(*len >= maxlen) {
lprintf(zm, LOG_ERR, "%lu Subpacket OVERFLOW (%u > %u)",(ulong)zm->ack_file_pos, *len, maxlen);
lprintf(zm, LOG_ERR, "%lu Subpacket OVERFLOW (%u >= %u)",(ulong)zm->ack_file_pos, *len, maxlen);
return SUBPKTOVERFLOW;
}
crc = ucrc32(c,crc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment