strlen() returns a size_t, which might be larger than int on some platforms
authorDaniel Stenberg <daniel@haxx.se>
Mon, 23 Feb 2004 07:46:59 +0000 (07:46 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 Feb 2004 07:46:59 +0000 (07:46 +0000)
ares__read_line.c

index 9f8445a..d816f18 100644 (file)
@@ -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)
     {