diff options
author | Denis Vlasenko | 2006-11-24 14:53:18 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-11-24 14:53:18 +0000 |
commit | cf30cc82a343802b601f01ae153916887f11eb7b (patch) | |
tree | dd5af380364efe67c7bd302d6c1c6d70f303f959 /networking/httpd.c | |
parent | 376ce1e775a97a01f1c454497fbe34d326043328 (diff) | |
download | busybox-cf30cc82a343802b601f01ae153916887f11eb7b.zip busybox-cf30cc82a343802b601f01ae153916887f11eb7b.tar.gz |
header_verbose_list: stop truncating file size in listing
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 97b04fb..0de60ba 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -889,8 +889,8 @@ static int sendHeaders(HttpResponseNum responseNum) if (config->ContentLength != -1) { /* file */ strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod)); - len += sprintf(buf+len, "Last-Modified: %s\r\n%s %"OFF_FMT"\r\n", - timeStr, "Content-length:", (off_t) config->ContentLength); + len += sprintf(buf+len, "Last-Modified: %s\r\n%s %"OFF_FMT"d\r\n", + timeStr, "Content-length:", config->ContentLength); } strcat(buf, "\r\n"); len += 2; |