summaryrefslogtreecommitdiff
path: root/scripts/comp_sql.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/comp_sql.c')
-rw-r--r--scripts/comp_sql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/comp_sql.c b/scripts/comp_sql.c
index bcc653a3b7f..6f32d6fe9a8 100644
--- a/scripts/comp_sql.c
+++ b/scripts/comp_sql.c
@@ -68,7 +68,7 @@ static void die(const char *fmt, ...)
char *fgets_fn(char *buffer, size_t size, fgets_input_t input, int *error)
{
- char *line= fgets(buffer, size, (FILE*) input);
+ char *line= fgets(buffer, (int)size, (FILE*) input);
if (error)
*error= (line == NULL) ? ferror((FILE*)input) : 0;
return line;