git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a4409c
)
vfs_virusfilter: Fix CID 1428740 Macro compares unsigned to 0
author
Volker Lendecke
<vl@samba.org>
Tue, 30 Jan 2018 11:36:14 +0000
(12:36 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 30 Jan 2018 23:40:01 +0000
(
00:40
+0100)
vsnprintf returns "int" and not "size_t"
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_virusfilter_utils.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_virusfilter_utils.c
b/source3/modules/vfs_virusfilter_utils.c
index d2616f058d58991c8b16446bc809517a2aaa859d..55d00f715d60f915240d55290729f8273eaf94d9 100644
(file)
--- 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;
+
in
t data_size;
data_size = vsnprintf(data, VIRUSFILTER_IO_BUFFER_SIZE, data_fmt, ap);