diff packages/net/athttpd/current/src/cgi.c @ 2265:b5670f3c40f2

* cdl/httpd.cdl: * doc/athttpd.sgml: Corrected some typos and rectified some omissions. * include/jim.h: Added an inline to Jim_InitExtension() * src/cgi.c: used malloc() instead of cyg_ldr_malloc(); * src/forms.c: Added a #define to be able tio use the TCL scripting without OBJLOADER * src/http.c: * src/socket.c: Lots of typos stamped out, and some better comments too.
author jlarmour
date Thu, 10 Aug 2006 17:37:48 +0000
parents 0830ae6acddc
children bd648d8929f6
line wrap: on
line diff
--- a/packages/net/athttpd/current/src/cgi.c
+++ b/packages/net/athttpd/current/src/cgi.c
@@ -43,7 +43,7 @@
  * #####DESCRIPTIONBEGIN####
  * 
  *  Author(s):    Anthony Tonizzo (atonizzo@gmail.com)
- *  Contributors: 
+ *  Contributors: Sergei Gavrikov (w3sg@SoftHome.net)
  *  Date:         2006-06-12
  *  Purpose:      
  *  Description:  
@@ -179,7 +179,7 @@ cyg_int32 cyg_httpd_exec_cgi_tcl(char *f
         return 0;
     }
     
-    char* tcl_buffer = (char*)cyg_ldr_malloc(sp.st_size);
+    char* tcl_buffer = (char*)malloc(sp.st_size);
     CYG_ASSERT(tcl_buffer != NULL, "Cannot malloc() for tcl CGI");
     if (tcl_buffer == NULL)
     {
@@ -304,7 +304,7 @@ cyg_httpd_exec_cgi(void)
 #ifdef CYGOPT_NET_ATHTTPD_USE_CGIBIN_TCL
     if ( strcmp(extension, CYG_HTTPD_DEFAULT_CGIBIN_TCL_EXTENSION) == 0)
     {
-        // Load a cgibin via OBJLOADER.
+        // Load a cgibin via the TCL interpreter.
         cyg_int32 rc = cyg_httpd_exec_cgi_tcl(file_name);
         return rc;
     }