aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-parser.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-15 22:37:47 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-15 22:37:47 +0800
commitd749d27d5725987dc95ae3ec9b176e13eaac3c43 (patch)
tree4c5a89d81c08e2532c4cac42d1959267d0926658 /camel/camel-mime-parser.c
parent600eb6308ae2ce5f7aeb40432f0aa7e8c8951611 (diff)
downloadgsoc2013-evolution-d749d27d5725987dc95ae3ec9b176e13eaac3c43.tar.gz
gsoc2013-evolution-d749d27d5725987dc95ae3ec9b176e13eaac3c43.tar.zst
gsoc2013-evolution-d749d27d5725987dc95ae3ec9b176e13eaac3c43.zip
same as below for path.
2004-03-15 Not Zed <NotZed@Ximian.com> * providers/local/camel-mbox-store.c (delete_folder): same as below for path. * providers/local/camel-local-store.c (delete_folder): NULL out str before looking up the state file using it. Otherwise we double-free str. * camel-mime-parser.c (folder_scan_skip_line): we want to scan till in-end-1. If we've been called we're either at the end of data, or we know we have an end of line character within memory. Another case in Bug #53355. svn path=/trunk/; revision=25068
Diffstat (limited to 'camel/camel-mime-parser.c')
-rw-r--r--camel/camel-mime-parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-mime-parser.c b/camel/camel-mime-parser.c
index d3954c069c..2748b32502 100644
--- a/camel/camel-mime-parser.c
+++ b/camel/camel-mime-parser.c
@@ -1097,7 +1097,7 @@ folder_scan_skip_line(struct _header_scan_state *s, GByteArray *save)
while ( (len = folder_read(s)) > 0 && len > s->atleast) { /* ensure we have at least enough room here */
inptr = s->inptr;
- inend = s->inend-1;
+ inend = s->inend;
c = -1;
while (inptr<inend
@@ -1117,6 +1117,8 @@ folder_scan_skip_line(struct _header_scan_state *s, GByteArray *save)
}
}
+ d(printf("couldn't find end of line?\n"));
+
s->atleast = atleast;
return -1; /* not found */