summaryrefslogtreecommitdiffstats
path: root/src/termcolors.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-06-11 02:33:01 +0200
committerGravatar Nikias Bassen2021-06-11 02:33:01 +0200
commitc68a83e154913b4de0ebc74a1f94165796e6b64c (patch)
tree520b83906c10d5970720f693bc34740f559b5812 /src/termcolors.c
parentde66c61fa0df1cbf9072f33c7dd04986b80b4e44 (diff)
downloadlibimobiledevice-glue-c68a83e154913b4de0ebc74a1f94165796e6b64c.tar.gz
libimobiledevice-glue-c68a83e154913b4de0ebc74a1f94165796e6b64c.tar.bz2
termcolors: Cast to correct type for format string specifier
Diffstat (limited to 'src/termcolors.c')
-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;
}