summaryrefslogtreecommitdiff
path: root/cmd/ini.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/ini.c')
-rw-r--r--cmd/ini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ini.c b/cmd/ini.c
index 8656299447..d65356bce7 100644
--- a/cmd/ini.c
+++ b/cmd/ini.c
@@ -90,7 +90,7 @@ static char *memgets(char *str, int num, char **mem, size_t *memsize)
end = *mem + *memsize;
newline = 0;
}
- len = min((end - *mem) + newline, num);
+ len = min((int)(end - *mem) + newline, num);
memcpy(str, *mem, len);
if (len < num)
str[len] = '\0';