]> granicus.if.org Git - mutt/commitdiff
Accept + as IMAP continuation, not just + . May close #2106.
authorBrendan Cully <brendan@kublai.com>
Mon, 10 Oct 2005 17:17:24 +0000 (17:17 +0000)
committerBrendan Cully <brendan@kublai.com>
Mon, 10 Oct 2005 17:17:24 +0000 (17:17 +0000)
Feed check_sec candy in setenv.c.

imap/command.c
setenv.c

index 4eabc0d7cb4e560901527ca81adbf4d3bd97a6ed..076137fe039bbbcede7a5d5493d6a76ed73fac69 100644 (file)
@@ -151,10 +151,8 @@ int imap_cmd_step (IMAP_DATA* idata)
     return IMAP_CMD_BAD;
 
   /* server demands a continuation response from us */
-  if (!ascii_strncmp (cmd->buf, "+ ", 2))
-  {
+  if (cmd->buf[0] == '+')
     return IMAP_CMD_RESPOND;
-  }
 
   /* tagged completion code */
   if (!ascii_strncmp (cmd->buf, cmd->seq, SEQLEN))
index 0fd901986dccc78f8ecd3e4306d309bef7df4768..6dd6c938faa4690362af05837513ad3777cd6ceb 100644 (file)
--- a/setenv.c
+++ b/setenv.c
@@ -27,15 +27,15 @@ setenv(const char *name, const char *value, int overwrite)
        the intention is to provide a replacement for the standard library
        function which sets errno and returns in the event of a memory
        allocation failure. */
-    envstring = malloc(strlen(name) + 1 + strlen(value) + 1);
+    envstring = malloc(strlen(name) + 1 + strlen(value) + 1); /* __MEM_CHECKED__ */
     if (envstring == NULL)
         return -1;
 
     /* Build the environment string and add it to the environment using
        putenv.  Systems without putenv lose, but XPG4 requires it. */
-    strcpy(envstring, name);
-    strcat(envstring, "=");
-    strcat(envstring, value);
+    strcpy(envstring, name);  /* __STRCPY_CHECKED__ */
+    strcat(envstring, "=");   /* __STRCAT_CHECKED__ */
+    strcat(envstring, value); /* __STRCAT_CHECKED__ */
     return putenv(envstring);
 
     /* Note that the memory allocated is not freed.  This is intentional;