From 58d919bd347e216a47d1536939b499484b905db9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 6 Oct 2012 14:50:37 +0000 Subject: Several bugfixes, mostly from Darcy Gong git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5217 42af7a65-404d-4744-a932-0658087f49c3 --- apps/netutils/webserver/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/netutils/webserver/httpd.c') diff --git a/apps/netutils/webserver/httpd.c b/apps/netutils/webserver/httpd.c index f96fc5a6c..9f621d67c 100644 --- a/apps/netutils/webserver/httpd.c +++ b/apps/netutils/webserver/httpd.c @@ -694,7 +694,7 @@ static inline int httpd_parse(struct httpd_state *pstate) while (state != STATE_BODY); #if !defined(CONFIG_NETUTILS_HTTPD_SENDFILE) && !defined(CONFIG_NETUTILS_HTTPD_MMAP) - if (0 == strcmp(pstate->ht_filename, "/") + if (0 == strcmp(pstate->ht_filename, "/")) { strncpy(pstate->ht_filename, "/" CONFIG_NETUTILS_HTTPD_INDEX, strlen("/" CONFIG_NETUTILS_HTTPD_INDEX)); } -- cgit v1.2.3