diff options
author | Yang Tse <yangsita@gmail.com> | 2009-10-09 14:06:38 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-10-09 14:06:38 +0000 |
commit | f1aa936d2c48a5a4cd860d22b8db566a1dd848b2 (patch) | |
tree | 05e2c2866281a4f321f1644f803acefc03dbe1bc /ares/ares__read_line.c | |
parent | a5ba25a5f6062a6d6b3ae9df9cb80c635ef80436 (diff) |
Fix compiler warning
Diffstat (limited to 'ares/ares__read_line.c')
-rw-r--r-- | ares/ares__read_line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares__read_line.c b/ares/ares__read_line.c index a4399e3c3..d198b12a1 100644 --- a/ares/ares__read_line.c +++ b/ares/ares__read_line.c @@ -46,7 +46,7 @@ int ares__read_line(FILE *fp, char **buf, size_t *bufsize) while (1) { - if (!fgets(*buf + offset, *bufsize - offset, fp)) + if (!fgets(*buf + offset, (int)(*bufsize - offset), fp)) return (offset != 0) ? 0 : (ferror(fp)) ? ARES_EFILE : ARES_EOF; len = offset + strlen(*buf + offset); if ((*buf)[len - 1] == '\n') |