1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2026-03-18 02:15:48 +00:00

Fix compiler warning

This commit is contained in:
Yang Tse
2009-10-09 14:06:38 +00:00
parent f3346ca16b
commit 590e697792
2 changed files with 8 additions and 7 deletions

View File

@ -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')