mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
Fix order of calloc arguments.
(Patch by Dawid Gajownik)
This commit is contained in:
@ -20,9 +20,9 @@ typedef struct Affinity_ {
|
||||
}*/
|
||||
|
||||
Affinity* Affinity_new() {
|
||||
Affinity* this = calloc(sizeof(Affinity), 1);
|
||||
Affinity* this = calloc(1, sizeof(Affinity));
|
||||
this->size = 8;
|
||||
this->cpus = calloc(sizeof(int), this->size);
|
||||
this->cpus = calloc(this->size, sizeof(int));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user