aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-mime-utils.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 7f6d0c76ae..a41a94277e 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,10 @@
+2000-12-15 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * camel-mime-utils.c (header_fold): When checking to see if we
+ need to fold the header, when we come accross a \n, make sure to
+ start at p + 1 the next time through the loop or else we get into
+ an infinite loop.
+
2000-12-13 Dan Winship <danw@helixcode.com>
* Namespace cleanup: change a bunch of IS_CAMEL_* macros to
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 425c77d35d..e2264159bc 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -3125,7 +3125,7 @@ header_fold(const char *in, int headerlen)
if (len >= CAMEL_FOLD_SIZE)
break;
len = 0;
- p = n;
+ p = n + 1;
}
if (len < CAMEL_FOLD_SIZE)
return g_strdup(in);