[xiph-commits] r9512 - icecast/trunk/icecast/src

karl at svn.xiph.org karl at svn.xiph.org
Sat Jun 25 05:27:14 PDT 2005


Author: karl
Date: 2005-06-25 05:27:10 -0700 (Sat, 25 Jun 2005)
New Revision: 9512

Modified:
   icecast/trunk/icecast/src/admin.c
Log:
missed from previous merge, some random chars at end of xml output


Modified: icecast/trunk/icecast/src/admin.c
===================================================================
--- icecast/trunk/icecast/src/admin.c	2005-06-24 05:44:47 UTC (rev 9511)
+++ icecast/trunk/icecast/src/admin.c	2005-06-25 12:27:10 UTC (rev 9512)
@@ -269,7 +269,8 @@
         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);



More information about the commits mailing list