When invalid "&..." is removed, the length of NULL-terminated string
in "tagbuf" should not be changed.
diff -r -U 10 courier-0.52.1/webmail/html.c pcourier-0.52.1/webmail/html.c
--- courier-0.52.1/webmail/html.c Tue Sep 6 01:08:23 2005
+++ pcourier-0.52.1/webmail/html.c Sat Dec 24 06:53:39 2005
@@ -242,21 +242,21 @@
while (*p)
{
if (strchr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
*p) == NULL)
break;
++p;
}
if (*p != ';')
{
- *q=0;
+ *q=' ';
}
--p;
}
tagattrlen=parseattr(0);
if ( tagattrlen > tagattrsize)
{
struct tagattrinfo *newta= tagattr ? (struct tagattrinfo *)
realloc(tagattr, (tagattrlen+16)*sizeof(*tagattr))
:(struct tagattrinfo *)