aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index db63e5d559..31b90c8417 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -3354,10 +3354,11 @@ header_fold(const char *in, int headerlen)
while (*p) {
n = strchr(p, '\n');
if (n == NULL) {
- n = p+strlen(p);
- } else {
- needunfold = TRUE;
+ len += strlen (p);
+ break;
}
+
+ needunfold = TRUE;
len += n-p;
if (len >= CAMEL_FOLD_SIZE)