summaryrefslogtreecommitdiffstats
path: root/src/xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml.c')
-rw-r--r--src/xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml.c b/src/xml.c
index 7bf1380..b5865f0 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -81,7 +81,7 @@ int _write(struct mansession *s, struct message *m) {
xml_quote_string(m->headers[i], xmlescaped);
lpos = xmlescaped;
dpos = strstr(lpos, ": ");
- if (dpos && *(lpos)!= ' ') {
+ if (dpos && *(lpos)!= ' ' && strlen(xmlescaped)<30 ) {
strcpy(outstring, " <");
strncat(outstring, lpos, dpos-lpos);
strcat(outstring, " Value=\"");