aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2000-11-17 16:12:43 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-11-17 16:12:43 +0800
commit368fa1632fe3dac69fd424e29303547286917893 (patch)
tree58b106f550657e87ab6b55b0e619b1b1e14a567f
parentaaaa3be69c5a4f59d1aa4ad4cee2be3de277892b (diff)
downloadgsoc2013-evolution-368fa1632fe3dac69fd424e29303547286917893.tar
gsoc2013-evolution-368fa1632fe3dac69fd424e29303547286917893.tar.gz
gsoc2013-evolution-368fa1632fe3dac69fd424e29303547286917893.tar.bz2
gsoc2013-evolution-368fa1632fe3dac69fd424e29303547286917893.tar.lz
gsoc2013-evolution-368fa1632fe3dac69fd424e29303547286917893.tar.xz
gsoc2013-evolution-368fa1632fe3dac69fd424e29303547286917893.tar.zst
gsoc2013-evolution-368fa1632fe3dac69fd424e29303547286917893.zip
lso make sure not to go past the end of the buffer ;-)
svn path=/trunk/; revision=6601
-rw-r--r--camel/providers/imap/camel-imap-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c
index 0677c63555..584cd1e754 100644
--- a/camel/providers/imap/camel-imap-utils.c
+++ b/camel/providers/imap/camel-imap-utils.c
@@ -639,7 +639,7 @@ imap_parse_nstring (char **str_p, int *len)
}
/* capture up until the end of the line - byte count may be a little off */
- for ( ; *(str + *len) != '\n'; (*len)++);
+ for ( ; *(str + *len) && *(str + *len) != '\n'; (*len)++);
out = g_strndup (str, *len);
*str_p = str + *len;