diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-11 22:15:44 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-11 22:15:44 +0000 |
commit | 95e445a499b4d9d6f132cfeb0a027b5f3acddb8f (patch) | |
tree | 4aaa03a61e484a2edea7dfc1e91c633b24d482a6 /mail/emil/files/patch-mimeparse.c | |
parent | Prevent collision with getline(3) (diff) |
Prevent collision with getline(3)
Notes
Notes:
svn path=/head/; revision=415042
Diffstat (limited to 'mail/emil/files/patch-mimeparse.c')
-rw-r--r-- | mail/emil/files/patch-mimeparse.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/mail/emil/files/patch-mimeparse.c b/mail/emil/files/patch-mimeparse.c index 19b25881742c..b3eab04c834e 100644 --- a/mail/emil/files/patch-mimeparse.c +++ b/mail/emil/files/patch-mimeparse.c @@ -1,6 +1,6 @@ ---- 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) +--- mimeparse.c.orig 1996-06-04 13:36:59 UTC ++++ mimeparse.c +@@ -219,9 +219,40 @@ parse_mime_siblings(struct message *m) inbuf->bodystart, inbuf->bodyend); #endif @@ -11,10 +11,10 @@ + move_past_boundary(m, m->sd->endbound); + for (;;) + { -+ tttt = getline(m->sd); ++ tttt = get_line(m->sd); +#ifdef DEBUG + if (edebug) -+ fprintf(stderr," getline = %d\n", tttt); ++ fprintf(stderr," get_line = %d\n", tttt); +#endif + if (tttt == 1) + { @@ -30,14 +30,16 @@ + } + break; + } -+ + +- m->sd->offset = m->sd->bodyend; +- if (getline(m->sd) == 0) + } + else + /* END_FIX */ + m->sd->offset = m->sd->bodyend; + - -- m->sd->offset = m->sd->bodyend; - if (getline(m->sd) == 0) ++ ++ if (get_line(m->sd) == 0) return(OK); if (m->sd->offset < m->sd->end) + { |