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:
parent
6ef06b5a75
commit
bc45ee7458
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user