desktop/htop/tree-crash.patch
AlmAck 5c170b0763 htop update to version 1.0.2
htop compiled with cgroup support. Patch added to prevent crash on very deep tree
2013-02-20 22:45:04 +01:00

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;