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>
This commit is contained in:
Jeroen Ruigrok van der Werven 2002-04-07 17:22:23 +00:00
parent 6ef06b5a75
commit bc45ee7458

View File

@ -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");