From 243a193e667d1a0f18db1c8c76cb515f9e88018d Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 20 May 2014 10:40:13 -0400 Subject: [PATCH] use long instead of int to limit possibility of overflow in switch, closes #1 --- src/ioctl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ioctl.cpp b/src/ioctl.cpp index 7ba7b9bd..119c6ce6 100644 --- a/src/ioctl.cpp +++ b/src/ioctl.cpp @@ -37,7 +37,7 @@ static int _ioctl(const int fd, - const int cmd, + const long cmd, void *arg, const unsigned int flags, void *data) @@ -80,7 +80,7 @@ namespace mergerfs return -EINVAL; return _ioctl(fileinfo->fd, - cmd, + (long)cmd, arg, flags, data);