summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-12-15 21:33:21 +0000
committerJeffrey Stedfast <fejj@src.gnome.org>2000-12-15 21:33:21 +0000
commit5e123bc16591c29d3ece861030a09faf19a8e2f8 (patch)
tree91c604ef39d0b4e9a9f9bc579801bc3ba599f450
parent6f01edbcf2d7c804eb5eea0ad1072ccda450f998 (diff)
downloadevolution-data-server-before-camel-mt.tar.gz
When checking to see if we need to fold the header, when we come accross abefore-camel-mt
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.
-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 7f6d0c76a..a41a94277 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 425c77d35..e2264159b 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);