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

karl at motherfish-iii.xiph.org karl at motherfish-iii.xiph.org
Mon Oct 25 08:42:04 PDT 2004


Author: karl
Date: 2004-10-25 08:42:04 -0700 (Mon, 25 Oct 2004)
New Revision: 8095

Modified:
   icecast/trunk/icecast/src/admin.c
Log:
a couple of potential bad pointer type problems


Modified: icecast/trunk/icecast/src/admin.c
===================================================================
--- icecast/trunk/icecast/src/admin.c	2004-10-25 15:17:31 UTC (rev 8094)
+++ icecast/trunk/icecast/src/admin.c	2004-10-25 15:42:04 UTC (rev 8095)
@@ -241,18 +241,17 @@
                "Content-Length: %d\r\n"
                "Content-Type: text/xml\r\n"
                "\r\n", len);
-        html_write(client, buff);
+        html_write(client, "%s", buff);
     }
     if (response == TRANSFORMED) {
         config = config_get_config();
         adminwebroot = config->adminroot_dir;
-        config_release_config();
         fullpath_xslt_template_len = strlen(adminwebroot) + 
             strlen(xslt_template) + 2;
         fullpath_xslt_template = malloc(fullpath_xslt_template_len);
-        memset(fullpath_xslt_template, '\000', fullpath_xslt_template_len);
         snprintf(fullpath_xslt_template, fullpath_xslt_template_len, "%s%s%s",
             adminwebroot, PATH_SEPARATOR, xslt_template);
+        config_release_config();
         html_write(client, "HTTP/1.0 200 OK\r\n"
                "Content-Type: text/html\r\n"
                "\r\n");



More information about the commits mailing list