mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix wrong sizeof in memstat(2).
This commit is contained in:
parent
e20dd6ed06
commit
b4c38fd044
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ static int sys_memstat(size_t* memused, size_t* memtotal)
|
|||
Statistics(&used, &total);
|
||||
if ( memused && !CopyToUser(memused, &used, sizeof(used)) )
|
||||
return -1;
|
||||
if ( memtotal && !CopyToUser(memtotal, &total, sizeof(used)) )
|
||||
if ( memtotal && !CopyToUser(memtotal, &total, sizeof(total)) )
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue