Use strdup explicitly

This commit is contained in:
Hisham Muhammad
2011-12-25 20:23:53 +00:00
parent 93233a67ea
commit 81e44312b4
17 changed files with 38 additions and 36 deletions

View File

@ -38,7 +38,7 @@ Panel* AffinityPanel_new(ProcessList* pl, Affinity* affinity) {
} else {
mode = false;
}
Panel_add(this, (Object*) CheckItem_new(String_copy(number), NULL, mode));
Panel_add(this, (Object*) CheckItem_new(strdup(number), NULL, mode));
}
return this;
}