From: Denis Vlasenko Date: Sun, 21 Oct 2007 23:24:42 +0000 (-0000) Subject: httpd: fix trivial bug (spotted by Alex Landau) X-Git-Tag: android-x86-2.2~2384 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=78ee7c853a8c140544c549215e979c06bfb8c8f0;p=android-x86%2Fexternal-busybox.git httpd: fix trivial bug (spotted by Alex Landau) --- diff --git a/networking/httpd.c b/networking/httpd.c index e4922e509..b31b73687 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -626,7 +626,7 @@ static void parse_conf(const char *path, int flag) } *host_port++ = '\0'; if (strncmp(host_port, "http://", 7) == 0) - c += 7; + host_port += 7; if (*host_port == '\0') { bb_error_msg("config error '%s' in '%s'", buf, cf); continue;