From 9120a27d14a927091da009248f51d146f93d040a Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 13 Sep 2009 20:14:51 +0000 Subject: CGI tried to execute using relative path git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2047 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/netutils/thttpd/thttpd_alloc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nuttx/netutils/thttpd/thttpd_alloc.h') diff --git a/nuttx/netutils/thttpd/thttpd_alloc.h b/nuttx/netutils/thttpd/thttpd_alloc.h index c20834965..1f24bc2e9 100755 --- a/nuttx/netutils/thttpd/thttpd_alloc.h +++ b/nuttx/netutils/thttpd/thttpd_alloc.h @@ -41,6 +41,8 @@ ****************************************************************************/ #include +#include +#include #include "config.h" #ifdef CONFIG_THTTPD @@ -55,10 +57,12 @@ extern FAR void *httpd_malloc(size_t nbytes); extern FAR void *httpd_realloc(FAR void *oldptr, size_t oldsize, size_t newsize); extern void httpd_free(FAR void *ptr); +extern FAR char *httpd_strdup(const char *str); #else # define httpd_malloc(n) malloc(n) # define httpd_realloc(p,o,n) realloc(p,n) # define httpd_free(p) free(p) +# define httpd_strdup(s) strdup(s) #endif /* Helpers to support allocations in multiples of a type size */ -- cgit v1.2.3