aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-23 07:46:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-23 07:46:59 +0000
commit7174ca7a20dd18f4b42f9b37f4260865365b71d2 (patch)
treec511f3f7c367779c232aaa15b7b4907066baf6fd /ares
parent2e61fde07fb15f31e9fc842097401066fc3c8776 (diff)
strlen() returns a size_t, which might be larger than int on some platforms
Diffstat (limited to 'ares')
-rw-r--r--ares/ares__read_line.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ares/ares__read_line.c b/ares/ares__read_line.c
index 9f8445ad3..d816f18c0 100644
--- a/ares/ares__read_line.c
+++ b/ares/ares__read_line.c
@@ -30,7 +30,8 @@
int ares__read_line(FILE *fp, char **buf, int *bufsize)
{
char *newbuf;
- int offset = 0, len;
+ int offset = 0;
+ size_t len;
if (*buf == NULL)
{