summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch b/noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch
new file mode 100644
index 0000000..e9fa44b
--- a/dev/null
+++ b/noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch
@@ -0,0 +1,12 @@
1diff -ru libetpan-0.32/tools/mailstream_helper.c libetpan-0.32_fixed/tools/mailstream_helper.c
2 --- libetpan-0.32/tools/mailstream_helper.c2003-12-15 04:33:58.000000000 +0100
3 +++ libetpan-0.32_fixed/tools/mailstream_helper.c2003-12-23 02:28:20.000000000 +0100
4@@ -352,7 +352,7 @@
5 current = message;
6 remaining = size;
7
8- while (remaining > 0) {
9+ while (remaining > 0 && remaining<=size) {
10 ssize_t length;
11
12 length = send_data_line(s, current, remaining);