1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-26 16:45:12 -04:00

[cgi] Proper format on 32bit

This commit is contained in:
Witold Filipczyk 2020-07-04 13:44:41 +02:00
parent 397353a4dc
commit bde596ab67

View File

@ -27,6 +27,7 @@
#include "network/socket.h"
#include "osdep/osdep.h"
#include "osdep/sysname.h"
#include "osdep/types.h"
#include "protocol/common.h"
#include "protocol/file/cgi.h"
#include "protocol/http/http.h"
@ -169,7 +170,7 @@ set_vars(struct connection *conn, unsigned char *script)
if (!open_http_post(&http->post, post, &error)) {
return -1;
}
snprintf(buf, 16, "%ld", http->post.total_upload_length);
snprintf(buf, 16, "%" OFF_PRINT_FORMAT, http->post.total_upload_length);
if (env_set("CONTENT_LENGTH", buf, -1)) {
return -1;
}