Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
2f30cd10
Commit
2f30cd10
authored
Apr 24, 2014
by
Hisham Muhammad
Browse files
Boost field buffer size - crashes when trying to draw very deep UTF-8 trees
Test by nesting 30 shells Patch from ArchLinux. Closes #65.
parent
a939cdf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Process.c
View file @
2f30cd10
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment