1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2014-10-16 20:26:46 +02:00
parent e20dd6ed06
commit b4c38fd044

View file

@ -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;
}