f637be2e44
Wed Jan 22 2003 Tim Powers <timp@redhat.com> - rebuilt Fri Oct 11 2002 Than Ngo <than@redhat.com> 0.12.20-15 - Fixed a bug with 16 bit ZMODEM transfer, jordanc@censoft.com (bug #75473)
21 lines
564 B
Diff
21 lines
564 B
Diff
diff -urN lrzsz-0.12.20/src/zm.c lrzsz-0.12.20.new/src/zm.c
|
|
--- lrzsz-0.12.20/src/zm.c Tue Dec 29 09:48:38 1998
|
|
+++ lrzsz-0.12.20.new/src/zm.c Tue Oct 8 12:46:58 2002
|
|
@@ -431,10 +431,12 @@
|
|
VPRINTF(3,("zsdata: %lu %s", (unsigned long) length,
|
|
Zendnames[(frameend-ZCRCE)&3]));
|
|
crc = 0;
|
|
- do {
|
|
- zsendline(*buf); crc = updcrc((0377 & *buf), crc);
|
|
- buf++;
|
|
- } while (--length>0);
|
|
+
|
|
+ for( ; length; length--) {
|
|
+ zsendline(*buf); crc = updcrc((0377 & *buf), crc);
|
|
+ buf++;
|
|
+ }
|
|
+
|
|
xsendline(ZDLE); xsendline(frameend);
|
|
crc = updcrc(frameend, crc);
|
|
|