From: Matthew Fernandez Date: Fri, 8 Apr 2022 03:39:41 +0000 (-0700) Subject: WebP plugin: fix use of raw '%zu' X-Git-Tag: 4.0.0~124^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=354a3597b1631f556be6841d3250b9628a47a48e;p=graphviz WebP plugin: fix use of raw '%zu' 03a5c3621e3185e4ca116805317a98cdc8595443 introduced another usage of the format specifier `%zu` which has some compatibility issues on Windows. This change switches to what it should have done to begin with, used the compatibility shim. --- diff --git a/plugin/webp/gvloadimage_webp.c b/plugin/webp/gvloadimage_webp.c index ad96f7e91..fda48488c 100644 --- a/plugin/webp/gvloadimage_webp.c +++ b/plugin/webp/gvloadimage_webp.c @@ -10,6 +10,7 @@ #include "config.h" +#include #include #include #include @@ -73,8 +74,8 @@ static cairo_surface_t* webp_really_loadimage(const char *in_file, FILE* const i data = malloc(data_size); ok = fread(data, data_size, 1, in) == 1; if (!ok) { - fprintf(stderr, "Error: WebP could not read %zu bytes of data from %s\n", - data_size, in_file); + fprintf(stderr, "Error: WebP could not read %" PRISIZE_T + " bytes of data from %s\n", data_size, in_file); free(data); return NULL; }