aboutsummaryrefslogtreecommitdiff
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorAngelo G. Del Regno <kholk11@gmail.com>2017-06-04 11:02:07 +0200
committerNikolaus Rath <Nikolaus@rath.org>2017-06-05 11:25:14 -0400
commitb2aaaaf40cdbc887d50cc0b504e25e199fcb3b13 (patch)
tree49aae082b82201fa99d5e8d280af60c5fab402f0 /lib/fuse.c
parentf13526ed66d76bb36dc8a145d803f4913d772a2c (diff)
downloadlibfuse-b2aaaaf40cdbc887d50cc0b504e25e199fcb3b13.tar.gz
Fix comparison of integers of different signs
Some variables of different size and sign were getting compared without any safe casting. The build system also throws warnings at this and, being this library used for filesystems, it's really important to ensure stability.
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index 2ab5b55..d7a7c82 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -1719,7 +1719,7 @@ int fuse_fs_read_buf(struct fuse_fs *fs, const char *path,
(unsigned long long) fi->fh,
fuse_buf_size(*bufp),
(unsigned long long) off);
- if (res >= 0 && fuse_buf_size(*bufp) > (int) size)
+ if (res >= 0 && fuse_buf_size(*bufp) > size)
fprintf(stderr, "fuse: read too many bytes\n");
if (res < 0)