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
7 years ago
by
Hisham Muhammad
Browse files
Options
Download
Email Patches
Plain Diff
Do not use xSnprintf when the result is used. Fixes #662.
parent
4300a195
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux/LinuxProcessList.c
+1
-1
linux/LinuxProcessList.c
with
1 addition
and
1 deletion
+1
-1
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
);
...
...
This diff is collapsed.
Click to expand it.
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