Merge branch 'upstream-KWSys' into ci-fedora-41
# By KWSys Upstream * upstream-KWSys: KWSys 2024-10-25 (7cff32e1)
This commit is contained in:
commit
60385d2f52
@ -3405,8 +3405,9 @@ bool SystemInformationImplementation::RetrieveInformationFromCpuInfoFile()
|
||||
}
|
||||
|
||||
size_t fileSize = 0;
|
||||
while (!feof(fd)) {
|
||||
buffer += static_cast<char>(fgetc(fd));
|
||||
int fc;
|
||||
while ((fc = fgetc(fd)) != EOF) {
|
||||
buffer += static_cast<char>(fc);
|
||||
fileSize++;
|
||||
}
|
||||
fclose(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user