From 02c42fdeba130accf93f87d3381b3cf11fe2cbf9 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Fri, 20 Sep 2019 17:08:25 +0100 Subject: [PATCH] Silence a couple of GCC compiler warnings --- libvips/foreign/heifload.c | 2 +- libvips/iofuncs/util.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libvips/foreign/heifload.c b/libvips/foreign/heifload.c index 2b8ed2f3..80fb3f45 100644 --- a/libvips/foreign/heifload.c +++ b/libvips/foreign/heifload.c @@ -330,7 +330,7 @@ vips_foreign_load_heif_set_header( VipsForeignLoadHeif *heif, VipsImage *out ) vips_snprintf( name, 256, VIPS_META_EXIF_NAME ); else if( g_ascii_strcasecmp( type, "mime" ) == 0 && vips_isprefix( " MAX_BUF ) vips_error_exit( "panic: buffer overflow " - "(request to write %d bytes to buffer of %d bytes)", - size, MAX_BUF ); + "(request to write %lu bytes to buffer of %d bytes)", + (unsigned long) size, MAX_BUF ); n = vsprintf( buf, format, ap ); if( n > MAX_BUF ) vips_error_exit( "panic: buffer overflow "