Commit 42f763bf authored by ePirat's avatar ePirat

Experimental fix for memory errors when using a lot of headers, see #1885

svn path=/icecast/trunk/icecast/; revision=19316
parent c8791e3c
......@@ -232,12 +232,11 @@ void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client)
if (problem == 0)
{
size_t full_len = strlen (mediatype) + len + 1024;
refbuf_t *refbuf = refbuf_new (full_len);
ssize_t ret;
int failed = 0;
if (full_len < 4096)
full_len = 4096;
refbuf_t *refbuf = refbuf_new (full_len);
ssize_t ret;
int failed = 0;
if (string == NULL)
string = xmlCharStrdup ("");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment