summaryrefslogtreecommitdiff
path: root/lrzsz-0.12.20.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-08-09 03:29:30 +0000
committerCoprDistGit <infra@openeuler.org>2023-08-09 03:29:30 +0000
commit4446cca51445807709825205c9a9963cdf8a6334 (patch)
tree76b3bd4fdc89739a53fbf32ab51414f4f55da268 /lrzsz-0.12.20.patch
parent37e7d9b76cae76e003561a40d8b08490016d8594 (diff)
automatic import of lrzszopeneuler20.03
Diffstat (limited to 'lrzsz-0.12.20.patch')
-rw-r--r--lrzsz-0.12.20.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/lrzsz-0.12.20.patch b/lrzsz-0.12.20.patch
new file mode 100644
index 0000000..19c6e44
--- /dev/null
+++ b/lrzsz-0.12.20.patch
@@ -0,0 +1,20 @@
+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);
+