aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares/ares__read_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares__read_line.c b/ares/ares__read_line.c
index f550a7ad4..258f2f610 100644
--- a/ares/ares__read_line.c
+++ b/ares/ares__read_line.c
@@ -43,7 +43,7 @@ int ares__read_line(FILE *fp, char **buf, int *bufsize)
while (1)
{
- if (!fgets(*buf + offset, *bufsize - offset, fp))
+ if (!fgets(*buf + offset, *bufsize - (int)offset, fp))
return (offset != 0) ? 0 : (ferror(fp)) ? ARES_EFILE : ARES_EOF;
len = offset + strlen(*buf + offset);
if ((*buf)[len - 1] == '\n')