summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/termcolors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/termcolors.c b/src/termcolors.c
index 703df30..710c9df 100644
--- a/src/termcolors.c
+++ b/src/termcolors.c
@@ -281,13 +281,13 @@ LIBIMOBILEDEVICE_GLUE_API int cvfprintf(FILE* stream, const char* fmt, va_list v
for (i = 0; i < num_esc; i++) {
p = &newbuf[esc_items[i].pos];
if (lastp < p) {
- fprintf(stream, "%.*s", p-lastp, lastp);
+ fprintf(stream, "%.*s", (int)(p-lastp), lastp);
lastp = p;
}
SetConsoleTextAttribute(h_stream, esc_items[i].attr);
}
if (lastp < end) {
- fprintf(stream, "%.*s", end-lastp, lastp);
+ fprintf(stream, "%.*s", (int)(end-lastp), lastp);
}
return res;
}