1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

missed from previous merge, some random chars at end of xml output

svn path=/icecast/trunk/icecast/; revision=9512
This commit is contained in:
Karl Heyes 2005-06-25 12:27:10 +00:00
parent 53650e969f
commit 2ecaecbf7f

View File

@ -269,7 +269,8 @@ void admin_send_response(xmlDocPtr doc, client_t *client,
xmlDocDumpMemory(doc, &buff, &len);
buf_len = strlen (http) + len + 20;
client->refbuf = refbuf_new (buf_len);
snprintf (client->refbuf->data, buf_len, "%s%d\r\n\r\n%s", http, len, buff);
len = snprintf (client->refbuf->data, buf_len, "%s%d\r\n\r\n%s", http, len, buff);
client->refbuf->len = len;
xmlFree(buff);
client->respcode = 200;
fserve_add_client (client, NULL);