diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-07-10 22:04:32 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-07-10 22:04:32 +0000 |
commit | 0c25fde6e73614a7d2dd793cd71e2cb379839061 (patch) | |
tree | 05bcc0f958d7413285afc2069611a02a2444149c /mail/mmr/files/patch-mime.cpp | |
parent | TruthTable is a truth table generator that does the dirty work for you. (diff) |
Update to version 1.6.0
PR: ports/100034
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes:
svn path=/head/; revision=167408
Diffstat (limited to 'mail/mmr/files/patch-mime.cpp')
-rw-r--r-- | mail/mmr/files/patch-mime.cpp | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/mail/mmr/files/patch-mime.cpp b/mail/mmr/files/patch-mime.cpp index ea7732a2cefd..0ca931562b19 100644 --- a/mail/mmr/files/patch-mime.cpp +++ b/mail/mmr/files/patch-mime.cpp @@ -1,20 +1,11 @@ ---- mime.cpp.orig Fri Oct 25 13:55:40 2002 -+++ mime.cpp Fri Oct 25 13:56:15 2002 -@@ -102,7 +102,7 @@ +--- mime.cpp.orig Tue Jan 24 16:58:33 2006 ++++ mime.cpp Sun Jul 9 23:46:48 2006 +@@ -110,7 +110,7 @@ + } + size_t available = obytesleft; + while ( ibytesleft > 0 ) { +- iconv(iconv_ctx, &ibuf, &ibytesleft, &obuf, &obytesleft); ++ iconv(iconv_ctx, (const char **)&ibuf, &ibytesleft, &obuf, &obytesleft); - /* The MIME_body class constructor */ - MIME_body:: MIME_body(IObottle *RawFile, char *endings[], -- MIME_body *lineage = NULL) -+ MIME_body *lineage) - { - MD5_CTX md5_ctx; - int i; -@@ -652,7 +652,7 @@ - length) to a new IO stream with SaveRaw(), or these changes will be lost. - */ - int --MIME_body:: AddPart(const char *file, int is_mime = 0) -+MIME_body:: AddPart(const char *file, int is_mime) - { - MD5_CTX md5_ctx; - int (*EncodeFile)(FILE *, IObottle *); + if ( ibytesleft > 0 ) { + if ( errno == EILSEQ ) { |