[pan] Fix ypart begin for bpf ranges
- From: Petr Kovář <pmkovar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan] Fix ypart begin for bpf ranges
- Date: Sun, 9 Dec 2018 20:46:19 +0000 (UTC)
commit b9a4154942c932a493736d2292bbae16384e35df
Author: Federico Cuello <fedux fedux com ar>
Date: Sat Nov 17 17:44:49 2018 +0100
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]