slackware-current/source/xap/pan/patches/0000-b9a4154942c932a493736d2292bbae16384e35df.patch
Patrick J Volkerding 8b5c0b991d Thu Jul 25 22:48:09 UTC 2019
l/SDL2-2.0.10-x86_64-1.txz:  Upgraded.
l/gmime-3.2.3-x86_64-1.txz:  Upgraded.
  Shared library .so-version bump.
n/NetworkManager-1.18.2-x86_64-1.txz:  Upgraded.
n/dhcpcd-8.0.1-x86_64-1.txz:  Upgraded.
n/openldap-client-2.4.48-x86_64-1.txz:  Upgraded.
xap/pan-0.145-x86_64-2.txz:  Rebuilt.
  Recompiled against gmime-3.2.3.
2019-07-26 08:59:43 +02:00

25 lines
915 B
Diff

From b9a4154942c932a493736d2292bbae16384e35df Mon Sep 17 00:00:00 2001
From: Federico Cuello <fedux@fedux.com.ar>
Date: Sat, 17 Nov 2018 17:44:49 +0100
Subject: [PATCH] Fix ypart begin for bpf ranges
It was creating yparts with begin=0 and end==previous_part_begin with
multipart files. It should start from 1 and next part from previous end
+ 1.
---
uulib/uuencode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/uulib/uuencode.c b/uulib/uuencode.c
index b9a390e..2768771 100644
--- a/uulib/uuencode.c
+++ b/uulib/uuencode.c
@@ -1740,7 +1740,7 @@ UUEncodePartial_byFSize (FILE *outfile, FILE *infile,
}
fprintf (outfile, "=ypart begin=%ld end=%ld%s",
- (partno-1)*bpf,
+ (partno-1)*bpf+1,
(partno*bpf) < progress.totsize ?
(partno*bpf) : progress.totsize,
eolstring);