aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-12-16 05:33:21 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-12-16 05:33:21 +0800
commit7fbf92b1d677fdb27942e3e5e5b99577f0276275 (patch)
tree16eeb54a27ae6ade32570d906c387218c8908d49 /camel
parentdd79aa60b7bf7893a58445938c329e4cc308c94b (diff)
downloadgsoc2013-evolution-7fbf92b1d677fdb27942e3e5e5b99577f0276275.tar.gz
gsoc2013-evolution-7fbf92b1d677fdb27942e3e5e5b99577f0276275.tar.zst
gsoc2013-evolution-7fbf92b1d677fdb27942e3e5e5b99577f0276275.zip
When checking to see if we need to fold the header, when we come accross a
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. svn path=/trunk/; revision=7055
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);