commit 2c2026d5ada176f8d01f84484962fc5703d8f6c6
Author: Oswald Buddenhagen <[email protected]>
Date: Sun Mar 27 11:01:22 2011 +0200
add CR after TUID during LF => CRLF conversion
src/sync.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sync.c b/src/sync.c
index 7f5fa70..b933469 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -253,7 +253,7 @@ msg_fetched( int sts, void *aux )
free( fmap );
return vars->cb( SYNC_NOGOOD, 0, vars );
oke:
- extra += 8 + TUIDL + 1 + (tcr && hcrs);
+ extra += 8 + TUIDL + 1 + (tcr && (!scr ||
hcrs));
}
if (tcr != scr) {
for (; i < len; i++) {
@@ -294,7 +294,7 @@ msg_fetched( int sts, void *aux )
buf += 8;
memcpy( buf, vars->srec->tuid, TUIDL );
buf += TUIDL;
- if (tcr && hcrs)
+ if (tcr && (!scr || hcrs))
*buf++ = '\r';
*buf++ = '\n';
i = ebreak;
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel