aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-17 11:42:12 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-17 11:42:12 +0800
commit97be61b4787ccb3b52a34e625cb5f49c67ace6fe (patch)
treef19b4ac8c6e0d73cf4bbe5c82b04e99c1d9f7918
parent2003a6950166d8e470d71e4e07ef9bbf4bc35ccd (diff)
downloadgsoc2013-evolution-97be61b4787ccb3b52a34e625cb5f49c67ace6fe.tar
gsoc2013-evolution-97be61b4787ccb3b52a34e625cb5f49c67ace6fe.tar.gz
gsoc2013-evolution-97be61b4787ccb3b52a34e625cb5f49c67ace6fe.tar.bz2
gsoc2013-evolution-97be61b4787ccb3b52a34e625cb5f49c67ace6fe.tar.lz
gsoc2013-evolution-97be61b4787ccb3b52a34e625cb5f49c67ace6fe.tar.xz
gsoc2013-evolution-97be61b4787ccb3b52a34e625cb5f49c67ace6fe.tar.zst
gsoc2013-evolution-97be61b4787ccb3b52a34e625cb5f49c67ace6fe.zip
Don't imap_next_word(respbuf + 2), instead use imap_next_word(respbuf) or
2000-10-16 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-command.c (imap_read_response): Don't imap_next_word(respbuf + 2), instead use imap_next_word(respbuf) or else we'll skip over the second token. svn path=/trunk/; revision=5961
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/providers/imap/camel-imap-command.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 2bd58ffd64..fb47c75e5d 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,6 +1,13 @@
2000-10-16 Jeffrey Stedfast <fejj@helixcode.com>
* providers/imap/camel-imap-command.c
+ (imap_read_response): Don't imap_next_word(respbuf + 2), instead
+ use imap_next_word(respbuf) or else we'll skip over the second
+ token.
+
+2000-10-16 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * providers/imap/camel-imap-command.c
(camel_imap_response_extract): Don't free 'resp' as it doesn't
point to the beginning of the allocated data, instead free
response->untagged->pdata[i]. Also, if '*resp' is equal to a space
diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c
index 1827869c14..4310bd90de 100644
--- a/camel/providers/imap/camel-imap-command.c
+++ b/camel/providers/imap/camel-imap-command.c
@@ -154,7 +154,7 @@ imap_read_response (CamelImapStore *store, CamelException *ex)
/* If it starts with a number, we might deal with
* it ourselves.
*/
- word = imap_next_word (respbuf + 2);
+ word = imap_next_word (respbuf);
number = strtoul (word, &p, 10);
if (p != word && store->current_folder) {
word = imap_next_word (p);