1
0
mirror of https://github.com/xzeldon/htop.git synced 2025-04-11 04:57:07 +03:00

Do not use xSnprintf when the result is used. Fixes .

This commit is contained in:
Hisham Muhammad 2017-08-01 15:48:43 -07:00
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);