author | alwin <alwin> | 2003-12-23 01:31:28 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-23 01:31:28 (UTC) |
commit | be95b109fdd37e86b179bf63b15a647acc58a445 (patch) (unidiff) | |
tree | a652efb6dfabe9f6bbaa33cc2f4434b066d382b8 | |
parent | dd8b635cf7165524799743b0516ea51bef3210c8 (diff) | |
download | opie-be95b109fdd37e86b179bf63b15a647acc58a445.zip opie-be95b109fdd37e86b179bf63b15a647acc58a445.tar.gz opie-be95b109fdd37e86b179bf63b15a647acc58a445.tar.bz2 |
fix for an unsigned bug while sending data via mail stream
-rw-r--r-- | noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch | 12 |
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 @@ | |||
1 | diff -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); | ||