diff options
Diffstat (limited to 'camel/camel-mime-parser.c')
-rw-r--r-- | camel/camel-mime-parser.c | 2 |
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; |