1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-11 05:29:28 -04:00

http: use off_t for the chunk size.

This commit is contained in:
Witold Filipczyk 2007-06-09 11:40:13 +02:00 committed by Witold Filipczyk
parent 9fb5595948
commit eb1fe8ee5a

View File

@ -1193,11 +1193,11 @@ read_chunked_http_data(struct connection *conn, struct read_buffer *rb)
if (l) { if (l) {
unsigned char *de; unsigned char *de;
int n = 0; off_t n = 0;
if (l != -1) { if (l != -1) {
errno = 0; errno = 0;
n = strtol(rb->data, (char **) &de, 16); n = strtoll(rb->data, (char **) &de, 16);
if (errno || !*de) { if (errno || !*de) {
return -1; return -1;
} }