mirror of https://github.com/xzeldon/htop.git
Boost field buffer size - crashes when trying to draw very deep UTF-8 trees
Test by nesting 30 shells Patch from ArchLinux. Closes #65.
This commit is contained in:
parent
a939cdf827
commit
2f30cd1070
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue