summaryrefslogtreecommitdiff
path: root/ares__read_line.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-10-09 14:06:38 (GMT)
committerYang Tse <yangsita@gmail.com>2009-10-09 14:06:38 (GMT)
commit590e697792b8544e66311b93e9dd67a129bbf753 (patch)
tree85e8725b917f89c77a2e1510662d52e12ef43d75 /ares__read_line.c
parentf3346ca16b7c87d6cfe0c1605321dbf0a706e57a (diff)
downloadc-ares-590e697792b8544e66311b93e9dd67a129bbf753.zip
c-ares-590e697792b8544e66311b93e9dd67a129bbf753.tar.gz
c-ares-590e697792b8544e66311b93e9dd67a129bbf753.tar.bz2
Fix compiler warning
Diffstat (limited to 'ares__read_line.c')
-rw-r--r--ares__read_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares__read_line.c b/ares__read_line.c
index a4399e3..d198b12 100644
--- a/ares__read_line.c
+++ b/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')