From 6ea70851161e91e86b9f8836a332cdc18805c1b6 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 11 Apr 2019 17:14:24 +0100 Subject: [PATCH] missing ! on vips_dbuf_write_amp() --- libvips/iofuncs/dbuf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libvips/iofuncs/dbuf.c b/libvips/iofuncs/dbuf.c index a7ff8181..230ca739 100644 --- a/libvips/iofuncs/dbuf.c +++ b/libvips/iofuncs/dbuf.c @@ -240,23 +240,23 @@ vips_dbuf_write_amp( VipsDbuf *dbuf, const char *str ) * control characters, so we can use them -- thanks * electroly. */ - if( vips_dbuf_writef( dbuf, "&#x%04x;", 0x2400 + *p ) ) + if( !vips_dbuf_writef( dbuf, "&#x%04x;", 0x2400 + *p ) ) return( FALSE ); } else if( *p == '<' ) { - if( vips_dbuf_write( dbuf, (guchar *) "<", 4 ) ) + if( !vips_dbuf_write( dbuf, (guchar *) "<", 4 ) ) return( FALSE ); } else if( *p == '>' ) { - if( vips_dbuf_write( dbuf, (guchar *) ">", 4 ) ) + if( !vips_dbuf_write( dbuf, (guchar *) ">", 4 ) ) return( FALSE ); } else if( *p == '&' ) { - if( vips_dbuf_write( dbuf, (guchar *) "&", 5 ) ) + if( !vips_dbuf_write( dbuf, (guchar *) "&", 5 ) ) return( FALSE ); } else { - if( vips_dbuf_write( dbuf, (guchar *) p, 1 ) ) + if( !vips_dbuf_write( dbuf, (guchar *) p, 1 ) ) return( FALSE ); }