mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
strlen() returns a size_t, which might be larger than int on some platforms
This commit is contained in:
parent
2e61fde07f
commit
7174ca7a20
@ -30,7 +30,8 @@
|
|||||||
int ares__read_line(FILE *fp, char **buf, int *bufsize)
|
int ares__read_line(FILE *fp, char **buf, int *bufsize)
|
||||||
{
|
{
|
||||||
char *newbuf;
|
char *newbuf;
|
||||||
int offset = 0, len;
|
int offset = 0;
|
||||||
|
size_t len;
|
||||||
|
|
||||||
if (*buf == NULL)
|
if (*buf == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user