summaryrefslogtreecommitdiffstats
path: root/src/xml.c
diff options
context:
space:
mode:
authorDavid Troy <dave@popvox.com>2006-04-13 17:41:23 +0000
committerDavid Troy <dave@popvox.com>2006-04-13 17:41:23 +0000
commit48885016fb944a633b70d654ac6de66395b11b71 (patch)
tree9128d082c773f25b90d569e080e5d637f516295a /src/xml.c
parent7ade07a3d3238b3f2b516c109fdee69c688bc992 (diff)
downloadastmanproxy-48885016fb944a633b70d654ac6de66395b11b71.tar.gz
astmanproxy-48885016fb944a633b70d654ac6de66395b11b71.tar.xz
astmanproxy-48885016fb944a633b70d654ac6de66395b11b71.zip
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/trunk@114 f02b47b9-160a-0410-81a6-dc3441afb0ec
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=\"");