summaryrefslogtreecommitdiff
path: root/extra/htop/tree-crash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/htop/tree-crash.patch')
-rw-r--r--extra/htop/tree-crash.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/htop/tree-crash.patch b/extra/htop/tree-crash.patch
new file mode 100644
index 000000000..b949e262d
--- /dev/null
+++ b/extra/htop/tree-crash.patch
@@ -0,0 +1,13 @@
+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;