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
1 changed files with 1 additions and 1 deletions

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