diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-24 15:08:32 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-04-24 15:08:32 -0300 |
commit | 2f30cd1070785d7dadbf197392937a14649f89db (patch) | |
tree | b4e019fb2ca69413b430ddae5743645fc2f84304 /Process.c | |
parent | a939cdf827bcfd19554829a7a02d83dc35331105 (diff) |
Boost field buffer size - crashes when trying to draw very deep UTF-8 trees
Test by nesting 30 shells
Patch from ArchLinux. Closes #65.
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -469,7 +469,7 @@ static inline void Process_outputRate(RichString* str, int attr, char* buffer, i } 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; |