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

Accept hex headers terminated with 0x8A

Some ZMODEM implementations set the high bit (even parity?) when sending this '\n' terminator.
As reported via IRC:
<Keyop> sexyz: !zmodem_recv_hex_header HEX header not terminated with LF: 138 (8Ah)
parent b6411a36
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1314 passed
......@@ -1166,7 +1166,7 @@ BOOL zmodem_recv_hex_header(zmodem_t* zm)
*/
c = zmodem_rx(zm); /* drop LF */
}
if(c != '\n') {
if(c != '\n' && c != 0x8A) {
lprintf(zm, LOG_ERR, "%s HEX header not terminated with LF: %s"
,__FUNCTION__, chr(c));
return FALSE;
......
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