mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
http: use off_t for the chunk size.
This commit is contained in:
parent
9fb5595948
commit
eb1fe8ee5a
@ -1193,11 +1193,11 @@ read_chunked_http_data(struct connection *conn, struct read_buffer *rb)
|
||||
|
||||
if (l) {
|
||||
unsigned char *de;
|
||||
int n = 0;
|
||||
off_t n = 0;
|
||||
|
||||
if (l != -1) {
|
||||
errno = 0;
|
||||
n = strtol(rb->data, (char **) &de, 16);
|
||||
n = strtoll(rb->data, (char **) &de, 16);
|
||||
if (errno || !*de) {
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user