Let's keep it simple then!

This commit is contained in:
Hisham 2016-06-20 12:11:49 -03:00
parent 0fa03322a9
commit 7d5ef246f1
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ void Process_setupColumnWidths() {
assert(digits < 20);
for (int i = 0; Process_pidColumns[i].label; i++) {
assert(i < 20);
snprintf(Process_titleBuffer[i], digits + 2, "%*s ", digits, Process_pidColumns[i].label);
snprintf(Process_titleBuffer[i], 20, "%*s ", digits, Process_pidColumns[i].label);
Process_fields[Process_pidColumns[i].id].title = Process_titleBuffer[i];
}
sprintf(Process_pidFormat, "%%%dd ", digits);