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
9487bda3
Commit
9487bda3
authored
Aug 01, 2017
by
Hisham Muhammad
Browse files
Do not use xSnprintf when the result is used. Fixes #662.
parent
4300a195
Changes
1
Hide whitespace changes
Inline
Side-by-side
linux/LinuxProcessList.c
View file @
9487bda3
...
...
@@ -491,7 +491,7 @@ static void LinuxProcessList_readCGroupFile(LinuxProcess* process, const char* d
at
++
;
left
--
;
}
int
wrote
=
xS
nprintf
(
at
,
left
,
"%s"
,
group
);
int
wrote
=
s
nprintf
(
at
,
left
,
"%s"
,
group
);
left
-=
wrote
;
}
fclose
(
file
);
...
...
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