mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Do not use xSnprintf when the result is used. Fixes #662.
This commit is contained in:
parent
4300a19592
commit
9487bda330
@ -491,7 +491,7 @@ static void LinuxProcessList_readCGroupFile(LinuxProcess* process, const char* d
|
||||
at++;
|
||||
left--;
|
||||
}
|
||||
int wrote = xSnprintf(at, left, "%s", group);
|
||||
int wrote = snprintf(at, left, "%s", group);
|
||||
left -= wrote;
|
||||
}
|
||||
fclose(file);
|
||||
|
Loading…
Reference in New Issue
Block a user