Drop unneded null byte at end of httpd-fsdata files.

This commit is contained in:
David Kopf 2011-09-10 13:04:21 -04:00
parent f721f646fa
commit d01df43a0c
6 changed files with 57 additions and 42 deletions

View file

@ -74,11 +74,12 @@ httpd_fs_open(const char *name, struct httpd_fs_file *file)
httpd_memcpy(&fram,f,sizeof(fram));
/*Compare name passed in RAM with name in whatever flash the file is in */
/*makefsdata adds an extra zero byte at the end of the file */
/*makefsdata no longer adds an extra zero byte at the end of the file */
if(httpd_fs_strcmp((char *)name, fram.name) == 0) {
if (file) {
file->data = fram.data;
file->len = fram.len-1;
// file->len = fram.len-1;
file->len = fram.len;
#if WEBSERVER_CONF_FILESTATS==2 //increment count in linked list field if it is in RAM
f->count++;
}