Browse Source

use long instead of int to limit possibility of overflow in switch, closes #1

pull/36/head
Antonio SJ Musumeci 11 years ago
parent
commit
243a193e66
  1. 4
      src/ioctl.cpp

4
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);

Loading…
Cancel
Save