From a4bcbd0e0416bb4965488ec1f16039aa302f8b91 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 9 Jun 2009 23:01:24 +0200 Subject: telnetd: properly close fds in child Signed-off-by: Denys Vlasenko --- networking/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/httpd.c') diff --git a/networking/httpd.c b/networking/httpd.c index 5cd98a5..956eeca 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -718,7 +718,7 @@ static void parse_conf(const char *path, int flag) /* form "/path/file" */ sprintf(cur->before_colon, "/%s%.*s", path, - after_colon - buf - 1, /* includes "/", but not ":" */ + (int) (after_colon - buf - 1), /* includes "/", but not ":" */ buf); /* canonicalize it */ p = bb_simplify_abs_path_inplace(cur->before_colon); -- cgit v1.1