Fix wrong sizeof in memstat(2).
This commit is contained in:
parent
e20dd6ed06
commit
b4c38fd044
|
@ -52,7 +52,7 @@ static int sys_memstat(size_t* memused, size_t* memtotal)
|
||||||
Statistics(&used, &total);
|
Statistics(&used, &total);
|
||||||
if ( memused && !CopyToUser(memused, &used, sizeof(used)) )
|
if ( memused && !CopyToUser(memused, &used, sizeof(used)) )
|
||||||
return -1;
|
return -1;
|
||||||
if ( memtotal && !CopyToUser(memtotal, &total, sizeof(used)) )
|
if ( memtotal && !CopyToUser(memtotal, &total, sizeof(total)) )
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue