aboutsummaryrefslogtreecommitdiff
path: root/release/picobsd/tinyware/simple_httpd/simple_httpd.c
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2002-04-07 17:22:23 +0000
committerJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2002-04-07 17:22:23 +0000
commitbc45ee745884e0c2fb82f385bdf6335648998ff6 (patch)
tree69d2392fcb4b3522a172dc8725b061eaa157ab0d /release/picobsd/tinyware/simple_httpd/simple_httpd.c
parent6ef06b5a753aaa8a851226045dd1bbc34e5c0ebf (diff)
downloadsrc-bc45ee745884e0c2fb82f385bdf6335648998ff6.tar.gz
src-bc45ee745884e0c2fb82f385bdf6335648998ff6.zip
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>
Notes
Notes: svn path=/head/; revision=94133
Diffstat (limited to 'release/picobsd/tinyware/simple_httpd/simple_httpd.c')
-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 99bf89b75d77..f02641d02442 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");