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
f239b62b
Commit
f239b62b
authored
Apr 21, 2014
by
Hisham Muhammad
Browse files
Restrict size of read.
parent
f6778432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Header.c
View file @
f239b62b
...
...
@@ -71,7 +71,7 @@ void Header_createMeter(Header* this, char* name, HeaderSide side) {
char
*
paren
=
strchr
(
name
,
'('
);
int
param
=
0
;
if
(
paren
)
{
int
ok
=
sscanf
(
paren
,
"(%d)"
,
&
param
);
int
ok
=
sscanf
(
paren
,
"(%
10
d)"
,
&
param
);
if
(
!
ok
)
param
=
0
;
*
paren
=
'\0'
;
}
...
...
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