aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-09 23:01:24 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-09 23:01:24 +0200
commita4bcbd0e0416bb4965488ec1f16039aa302f8b91 (patch)
treec6d9c6716dfa0d97ae8c18c68b4de6be14bd940f /networking/httpd.c
parent9d617c44d2b1135d14b7dafd01a1d3992293f4d9 (diff)
downloadbusybox-a4bcbd0e0416bb4965488ec1f16039aa302f8b91.tar.gz
telnetd: properly close fds in child
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 5cd98a573..956eecaf2 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);