mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Properly cast longs to off_t so we dont loose precision.
This commit is contained in:
parent
979af4e167
commit
77de5988d6
1 changed files with 1 additions and 1 deletions
|
|
@ -1034,7 +1034,7 @@ acd_ioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td)
|
|||
break;
|
||||
|
||||
case DIOCGMEDIASIZE:
|
||||
*(off_t *)addr = cdp->disk_size * cdp->block_size;
|
||||
*(off_t *)addr = (off_t)cdp->disk_size * (off_t)cdp->block_size;
|
||||
break;
|
||||
|
||||
case DIOCGSECTORSIZE:
|
||||
|
|
|
|||
Loading…
Reference in a new issue