Silence a couple of GCC compiler warnings
This commit is contained in:
parent
e16e4abeda
commit
02c42fdeba
@ -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( "<x:xmpmeta", (const char *) data ) )
|
||||
snprintf( name, 256, VIPS_META_XMP_NAME );
|
||||
vips_snprintf( name, 256, VIPS_META_XMP_NAME );
|
||||
else
|
||||
vips_snprintf( name, 256, "heif-%s-%d", type, i );
|
||||
|
||||
|
@ -444,8 +444,8 @@ vips_vsnprintf( char *str, size_t size, const char *format, va_list ap )
|
||||
*/
|
||||
if( size > 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 "
|
||||
|
Loading…
Reference in New Issue
Block a user