mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
use long instead of int to limit possibility of overflow in switch, closes #1
This commit is contained in:
parent
97ce6f5f21
commit
243a193e66
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue