diff options
author | Johan van Selst <johans@FreeBSD.org> | 2011-07-25 18:54:26 +0000 |
---|---|---|
committer | Johan van Selst <johans@FreeBSD.org> | 2011-07-25 18:54:26 +0000 |
commit | 40a3b0ef5ff3ee0938d700db2c51c300243c5e67 (patch) | |
tree | 8fc0794111b361cace074fd6ebf5d27c38a03307 /mail/emil/files/patch-mimeparse.c | |
parent | Fix elm build with clang (respect $CC in configure) (diff) |
- Respect $CC
- Fix build with clang
- Regenerate patchfiles after including the clang patches
Notes
Notes:
svn path=/head/; revision=278313
Diffstat (limited to 'mail/emil/files/patch-mimeparse.c')
-rw-r--r-- | mail/emil/files/patch-mimeparse.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/mail/emil/files/patch-mimeparse.c b/mail/emil/files/patch-mimeparse.c new file mode 100644 index 000000000000..19b25881742c --- /dev/null +++ b/mail/emil/files/patch-mimeparse.c @@ -0,0 +1,43 @@ +--- mimeparse.c.orig 1996-06-04 15:36:59.000000000 +0200 ++++ mimeparse.c 2011-07-25 20:21:13.000000000 +0200 +@@ -219,8 +219,39 @@ parse_mime_siblings(struct message *m) + inbuf->bodystart, + inbuf->bodyend); + #endif ++ /* FIX */ ++ if (m->sd->encoding == EMULTI && m->sd->endbound != NULL) ++ { ++ int tttt; ++ move_past_boundary(m, m->sd->endbound); ++ for (;;) ++ { ++ tttt = getline(m->sd); ++#ifdef DEBUG ++ if (edebug) ++ fprintf(stderr," getline = %d\n", tttt); ++#endif ++ if (tttt == 1) ++ { ++ inbuf->offset += tttt; ++ inbuf->loffset += 1; ++ continue; ++ } ++ if (tttt == 2 && *(m->sd->contents + m->sd->offset) == '\r') ++ { ++ inbuf->offset += tttt; ++ inbuf->loffset += 1; ++ continue; ++ } ++ break; ++ } ++ ++ } ++ else ++ /* END_FIX */ ++ m->sd->offset = m->sd->bodyend; ++ + +- m->sd->offset = m->sd->bodyend; + if (getline(m->sd) == 0) + return(OK); + if (m->sd->offset < m->sd->end) |