diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-06 14:50:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-06 14:50:37 +0000 |
commit | 58d919bd347e216a47d1536939b499484b905db9 (patch) | |
tree | 368a4fa4a4e226f04c5e40423081fec9727711c9 /apps/netutils/webserver/httpd.c | |
parent | 1aad2537e6adf2a72a69329a555b97cb9ed48f88 (diff) | |
download | nuttx-58d919bd347e216a47d1536939b499484b905db9.tar.gz nuttx-58d919bd347e216a47d1536939b499484b905db9.tar.bz2 nuttx-58d919bd347e216a47d1536939b499484b905db9.zip |
Several bugfixes, mostly from Darcy Gong
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5217 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/netutils/webserver/httpd.c')
-rw-r--r-- | apps/netutils/webserver/httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |