add CR after TUID during LF => CRLF conversion
This commit is contained in:
parent
8df1ebaf40
commit
296ac0364c
|
@ -253,7 +253,7 @@ msg_fetched( int sts, void *aux )
|
||||||
free( fmap );
|
free( fmap );
|
||||||
return vars->cb( SYNC_NOGOOD, 0, vars );
|
return vars->cb( SYNC_NOGOOD, 0, vars );
|
||||||
oke:
|
oke:
|
||||||
extra += 8 + TUIDL + 1 + (tcr && hcrs);
|
extra += 8 + TUIDL + 1 + (tcr && (!scr || hcrs));
|
||||||
}
|
}
|
||||||
if (tcr != scr) {
|
if (tcr != scr) {
|
||||||
for (; i < len; i++) {
|
for (; i < len; i++) {
|
||||||
|
@ -294,7 +294,7 @@ msg_fetched( int sts, void *aux )
|
||||||
buf += 8;
|
buf += 8;
|
||||||
memcpy( buf, vars->srec->tuid, TUIDL );
|
memcpy( buf, vars->srec->tuid, TUIDL );
|
||||||
buf += TUIDL;
|
buf += TUIDL;
|
||||||
if (tcr && hcrs)
|
if (tcr && (!scr || hcrs))
|
||||||
*buf++ = '\r';
|
*buf++ = '\r';
|
||||||
*buf++ = '\n';
|
*buf++ = '\n';
|
||||||
i = ebreak;
|
i = ebreak;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user