]> granicus.if.org Git - neomutt/commitdiff
patch-bac.capability-20010724.1. From Brendan Cully.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 24 Jul 2001 15:52:16 +0000 (15:52 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 24 Jul 2001 15:52:16 +0000 (15:52 +0000)
imap/command.c

index 39b001d2e5d34782d1168cd3a6e3169d5ced7478..becde1aa9bf277a4eccc745787479efd534ed902 100644 (file)
@@ -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)