From d7f8b7a49899926d4d7ba3e4ee5c73016d10be11 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 24 Jul 2001 15:52:16 +0000 Subject: [PATCH] patch-bac.capability-20010724.1. From Brendan Cully. --- imap/command.c | 9 ++++++--- 1 file 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) -- 2.40.0