From c68a83e154913b4de0ebc74a1f94165796e6b64c Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 11 Jun 2021 02:33:01 +0200 Subject: termcolors: Cast to correct type for format string specifier --- src/termcolors.c | 4 ++-- 1 file 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; } -- cgit v1.1-32-gdbae