summaryrefslogtreecommitdiffstats
path: root/release/picobsd
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2002-04-07 17:22:23 +0000
committerasmodai <asmodai@FreeBSD.org>2002-04-07 17:22:23 +0000
commitb88a08173b4b2ed7f1190fe958f1a20bf9e71aa9 (patch)
tree69d2392fcb4b3522a172dc8725b061eaa157ab0d /release/picobsd
parentdd9f8f3445b56d0626cf3bcc66f3790cb73e60b7 (diff)
downloadFreeBSD-src-b88a08173b4b2ed7f1190fe958f1a20bf9e71aa9.zip
FreeBSD-src-b88a08173b4b2ed7f1190fe958f1a20bf9e71aa9.tar.gz
Use %lld instead of %d in order to print struct stat's st_size, which is
an off_t. PR: 29725 Submitted by: Eugene Grosbein <eugen@svzserv.kemerovo.su>
Diffstat (limited to 'release/picobsd')
-rw-r--r--release/picobsd/tinyware/simple_httpd/simple_httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/picobsd/tinyware/simple_httpd/simple_httpd.c b/release/picobsd/tinyware/simple_httpd/simple_httpd.c
index 99bf89b..f02641d 100644
--- a/release/picobsd/tinyware/simple_httpd/simple_httpd.c
+++ b/release/picobsd/tinyware/simple_httpd/simple_httpd.c
@@ -307,7 +307,7 @@ http_request()
http_output(httpd_server_ident);
http_date();
- sprintf(buff, "Content-length: %d\r\n", file_status.st_size);
+ sprintf(buff, "Content-length: %lld\r\n", file_status.st_size);
if (strstr(filename,".txt")) {
strcpy(buff,"Content-type: text/plain\r\n");
OpenPOWER on IntegriCloud