client, Unix: read full buf size when getting CPU features

This commit is contained in:
David Anderson 2023-03-04 01:29:24 -08:00
parent 8ce3972e21
commit 826f641dfc
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ static void parse_cpuinfo_linux(HOST_INFO& host) {
host.m_cache=-1;
safe_strcpy(features, "");
while (fgets(buf, 1024, f)) {
while (fgets(buf, sizeof(buf), f)) {
strip_whitespace(buf);
if (
/* there might be conflicts if we dont #ifdef */