mirror of https://github.com/xzeldon/htop.git
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++;
|
at++;
|
||||||
left--;
|
left--;
|
||||||
}
|
}
|
||||||
int wrote = xSnprintf(at, left, "%s", group);
|
int wrote = snprintf(at, left, "%s", group);
|
||||||
left -= wrote;
|
left -= wrote;
|
||||||
}
|
}
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
|
Loading…
Reference in New Issue