]> granicus.if.org Git - mutt/commitdiff
quote-related fix to the RFC822 parser. From Edmund Grimley Evans.
authorThomas Roessler <roessler@does-not-exist.org>
Sun, 16 Jan 2000 11:32:27 +0000 (11:32 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sun, 16 Jan 2000 11:32:27 +0000 (11:32 +0000)
rfc822.c

index e2f85fc2505b04bda762c428b36656d556deec2c..061fcac0c703f40ee1a2710a53ae73c7b5f74394 100644 (file)
--- a/rfc822.c
+++ b/rfc822.c
@@ -132,7 +132,10 @@ parse_quote (const char *s, char *token, size_t *tokenlen, size_t tokenmax)
     if (*tokenlen < tokenmax)
       token[*tokenlen] = *s;
     if (*s == '"')
+    {
+      (*tokenlen)++;
       return (s + 1);
+    }
     if (*s == '\\')
     {
       if (!*++s)