diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 07:46:59 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 07:46:59 +0000 | 
| commit | 7174ca7a20dd18f4b42f9b37f4260865365b71d2 (patch) | |
| tree | c511f3f7c367779c232aaa15b7b4907066baf6fd | |
| parent | 2e61fde07fb15f31e9fc842097401066fc3c8776 (diff) | |
strlen() returns a size_t, which might be larger than int on some platforms
| -rw-r--r-- | ares/ares__read_line.c | 3 | 
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)      { | 
