search for: fullpath_xslt_template

Displaying 2 results from an estimated 2 matches for "fullpath_xslt_template".

2004 Aug 06
2
improved error.log output --diff
...3.000000000 -0400 +++ icecast-new/src/admin.c 2003-08-06 19:18:32.000000000 -0400 @@ -213,7 +213,7 @@ html_write(client, "HTTP/1.0 200 OK\r\n" "Content-Type: text/html\r\n" "\r\n"); - DEBUG1("Sending XSLT (%s)", fullpath_xslt_template); + DEBUG1("Sending XSLT (%s), %s", fullpath_xslt_template, client->con->ip); xslt_transform(doc, fullpath_xslt_template, client); free(fullpath_xslt_template); } @@ -227,19 +227,19 @@ int command; if(strncmp("/admin/", uri, 7)) {...
2011 Apr 29
4
You don't check for malloc failure
...sibly wrong but it saves the program from SIGSEGV and replaces it with SIGABRT. -peter diff -ru icecast-2.3.2-ORIG/src/admin.c icecast-2.3.2/src/admin.c --- icecast-2.3.2-ORIG/src/admin.c Fri May 2 17:40:00 2008 +++ icecast-2.3.2/src/admin.c Thu Apr 28 19:53:03 2011 @@ -291,6 +291,9 @@ fullpath_xslt_template_len = strlen (config->adminroot_dir) + strlen (xslt_template) + 2; fullpath_xslt_template = malloc(fullpath_xslt_template_len); + if (fullpath_xslt_template == NULL) { + abort(); + } snprintf(fullpath_xslt_template, fullpath_xslt_template_len, "%s%s%s",...