From 2ecaecbf7f479388ca7ebe2045e3af864b8d55d5 Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Sat, 25 Jun 2005 12:27:10 +0000 Subject: [PATCH] missed from previous merge, some random chars at end of xml output svn path=/icecast/trunk/icecast/; revision=9512 --- src/admin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/admin.c b/src/admin.c index 51104f34..b7378837 100644 --- a/src/admin.c +++ b/src/admin.c @@ -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);