summaryrefslogtreecommitdiffstats
path: root/imap/command.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-07-24 15:52:16 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-07-24 15:52:16 +0000
commitd7f8b7a49899926d4d7ba3e4ee5c73016d10be11 (patch)
tree5130e0a340ec17e14a2690709d1f4d7fb660b449 /imap/command.c
parentcda5c5beb630a17d74cd4662189b1d7376a04666 (diff)
patch-bac.capability-20010724.1. From Brendan Cully.
Diffstat (limited to 'imap/command.c')
-rw-r--r--imap/command.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/imap/command.c b/imap/command.c
index 39b001d2..becde1aa 100644
--- a/imap/command.c
+++ b/imap/command.c
@@ -403,9 +403,12 @@ static void cmd_parse_capabilities (IMAP_DATA* idata, char* s)
dprint (2, (debugfile, "Handling CAPABILITY\n"));
- idata->capstr = safe_strdup (imap_next_word (s));
-
- while (*s)
+ s = imap_next_word (s);
+ idata->capstr = safe_strdup (s);
+
+ memset (idata->capabilities, 0, sizeof (idata->capabilities));
+
+ while (*s)
{
for (x = 0; x < CAPMAX; x++)
if (imap_wordcasecmp(Capabilities[x], s) == 0)