diff options
Diffstat (limited to 'src/binlog.c')
-rw-r--r-- | src/binlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binlog.c b/src/binlog.c index f87a81b00..47070b3af 100644 --- a/src/binlog.c +++ b/src/binlog.c @@ -483,7 +483,7 @@ binlog_sync (struct rspamd_binlog *log, guint64 from_rev, guint64 *from_time, GB } (*rep)->data = g_malloc (idx->len); - if ((read (log->fd, (*rep)->data, idx->len)) != idx->len) { + if ((read (log->fd, (*rep)->data, idx->len)) != (ssize_t)idx->len) { msg_warn ("cannot read file %s, error %d, %s", log->filename, errno, strerror (errno)); res = FALSE; goto end; |