From 48f7992a484e3ceb16863bed9897eaae5bb4d7ce Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Tue, 6 Apr 2010 20:41:42 +0000 Subject: [PATCH] Minor syntax simplification. --- apps/webserver/httpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/webserver/httpd.c b/apps/webserver/httpd.c index 993f894dd..ab3989a89 100644 --- a/apps/webserver/httpd.c +++ b/apps/webserver/httpd.c @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $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 @@ -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));