From 7fbf92b1d677fdb27942e3e5e5b99577f0276275 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 15 Dec 2000 21:33:21 +0000 Subject: When checking to see if we need to fold the header, when we come accross a 2000-12-15 Jeffrey Stedfast * 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 --- camel/ChangeLog | 7 +++++++ camel/camel-mime-utils.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + + * 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 * 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); -- cgit