diff options
| author | 2021-06-11 02:33:01 +0200 | |
|---|---|---|
| committer | 2021-06-11 02:33:01 +0200 | |
| commit | c68a83e154913b4de0ebc74a1f94165796e6b64c (patch) | |
| tree | 520b83906c10d5970720f693bc34740f559b5812 /src | |
| parent | de66c61fa0df1cbf9072f33c7dd04986b80b4e44 (diff) | |
| download | libimobiledevice-glue-c68a83e154913b4de0ebc74a1f94165796e6b64c.tar.gz libimobiledevice-glue-c68a83e154913b4de0ebc74a1f94165796e6b64c.tar.bz2  | |
termcolors: Cast to correct type for format string specifier
Diffstat (limited to 'src')
| -rw-r--r-- | src/termcolors.c | 4 | 
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;  		}  | 
