mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
5c170b0763
htop compiled with cgroup support. Patch added to prevent crash on very deep tree
14 lines
460 B
Diff
14 lines
460 B
Diff
Index: Process.c
|
|
===================================================================
|
|
--- Process.c (revision 302)
|
|
+++ Process.c (working copy)
|
|
@@ -371,7 +371,7 @@
|
|
}
|
|
|
|
static void Process_writeField(Process* this, RichString* str, ProcessField field) {
|
|
- char buffer[128]; buffer[127] = '\0';
|
|
+ char buffer[256]; buffer[255] = '\0';
|
|
int attr = CRT_colors[DEFAULT_COLOR];
|
|
int baseattr = CRT_colors[PROCESS_BASENAME];
|
|
int n = sizeof(buffer) - 1;
|