From: Volker Lendecke Date: Tue, 30 Jan 2018 11:36:14 +0000 (+0100) Subject: vfs_virusfilter: Fix CID 1428740 Macro compares unsigned to 0 X-Git-Tag: tevent-0.9.36~257 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=734404bbe911fd4aa6565b2a2aaecab4fbbf3c45;p=samba.git vfs_virusfilter: Fix CID 1428740 Macro compares unsigned to 0 vsnprintf returns "int" and not "size_t" Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_virusfilter_utils.c b/source3/modules/vfs_virusfilter_utils.c index d2616f058d5..55d00f715d6 100644 --- a/source3/modules/vfs_virusfilter_utils.c +++ b/source3/modules/vfs_virusfilter_utils.c @@ -417,7 +417,7 @@ bool virusfilter_io_vwritefl( const char *data_fmt, va_list ap) { char data[VIRUSFILTER_IO_BUFFER_SIZE + VIRUSFILTER_IO_EOL_SIZE]; - size_t data_size; + int data_size; data_size = vsnprintf(data, VIRUSFILTER_IO_BUFFER_SIZE, data_fmt, ap);