summaryrefslogtreecommitdiff
path: root/ares__read_line.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-23 07:46:59 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2004-02-23 07:46:59 (GMT)
commit3f0b19ea45f9377c24d47e5d8df29b919995084a (patch)
tree7706c8397233997a9fc3f228dad5950ba0f31df5 /ares__read_line.c
parentbcc693e9665cb4e8f0897850d66feb585c66f58c (diff)
downloadc-ares-3f0b19ea45f9377c24d47e5d8df29b919995084a.zip
c-ares-3f0b19ea45f9377c24d47e5d8df29b919995084a.tar.gz
c-ares-3f0b19ea45f9377c24d47e5d8df29b919995084a.tar.bz2
strlen() returns a size_t, which might be larger than int on some platforms
Diffstat (limited to 'ares__read_line.c')
-rw-r--r--ares__read_line.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ares__read_line.c b/ares__read_line.c
index 9f8445a..d816f18 100644
--- a/ares__read_line.c
+++ b/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)
{