aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-parser.c')
-rw-r--r--camel/camel-mime-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-mime-parser.c b/camel/camel-mime-parser.c
index decd43207c..6039c10d78 100644
--- a/camel/camel-mime-parser.c
+++ b/camel/camel-mime-parser.c
@@ -620,7 +620,7 @@ retry:
register int len = (s->outend - s->outbuf);
char *outnew;
- if (headerlen >= len) {
+ if (headerlen >= s->outend - s->outptr) {
len = (len+headerlen)*2+1;
outnew = g_realloc(s->outbuf, len);
s->outptr = s->outptr - s->outbuf + outnew;