summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-01-30 12:37:30 +0100
committerKarolin Seeger <kseeger@samba.org>2018-04-20 11:56:23 +0200
commitbade8dc3ccd1be5dba7d1dd61081a0763f770715 (patch)
tree142b12473b218399a803d3718455fa1d9d55a731 /source3
parent932bdb2052d21b70ecb6e473a7174c9cb3acad21 (diff)
downloadsamba-bade8dc3ccd1be5dba7d1dd61081a0763f770715.tar.gz
vfs_virusfilter: Fix CID 1428738 Macro compares unsigned to 0
vsnprintf returns "int" and not "size_t" Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jan 31 05:28:48 CET 2018 on sn-devel-144 BUG: https://bugzilla.samba.org/show_bug.cgi?id=13343 (cherry picked from commit 21eb5169f46b8d819a5d5d028baff581e4e63de6)
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_virusfilter_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_virusfilter_utils.c b/source3/modules/vfs_virusfilter_utils.c
index 55d00f715d6..90ae427023b 100644
--- a/source3/modules/vfs_virusfilter_utils.c
+++ b/source3/modules/vfs_virusfilter_utils.c
@@ -395,7 +395,7 @@ bool virusfilter_io_writefl(
{
va_list ap;
char data[VIRUSFILTER_IO_BUFFER_SIZE + VIRUSFILTER_IO_EOL_SIZE];
- size_t data_size;
+ int data_size;
va_start(ap, data_fmt);
data_size = vsnprintf(data, VIRUSFILTER_IO_BUFFER_SIZE, data_fmt, ap);