Minor syntax simplification.

This commit is contained in:
oliverschmidt 2010-04-06 20:41:42 +00:00
parent 5a3eb98937
commit 48f7992a48

View File

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: httpd.c,v 1.16 2010/04/06 20:35:40 oliverschmidt Exp $
* $Id: httpd.c,v 1.17 2010/04/06 20:41:42 oliverschmidt Exp $
*/
#include <stdio.h>
@ -264,7 +264,7 @@ PT_THREAD(handle_input(struct httpd_state *s))
strncpy(s->filename, http_index_html, sizeof(s->filename));
} else {
s->inputbuf[PSOCK_DATALEN(&s->sin) - 1] = 0;
strncpy(s->filename, &s->inputbuf[0], sizeof(s->filename));
strncpy(s->filename, s->inputbuf, sizeof(s->filename));
}
petsciiconv_topetscii(s->filename, sizeof(s->filename));