stupid off by one: skip the last ')' in a comment !
authorPierre Habouzit <madcoder@debian.org>
Tue, 2 Jan 2007 06:45:52 +0000 (07:45 +0100)
committerPierre Habouzit <madcoder@debian.org>
Tue, 2 Jan 2007 06:45:52 +0000 (07:45 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-mime/rfc822address.c

index 6277ee9..c6b12ab 100644 (file)
@@ -145,7 +145,7 @@ static const char *parse_comment(const char *s, static_buf *buf)
           case ')':
             level--;
             if (!level)
-                return s;
+                return s + 1;
             break;
 
           case '\\':