mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-05 10:14:04 +00:00
[common] cpuinfo: trim trailing whitespace from model name on Windows
This commit is contained in:
@@ -49,6 +49,12 @@ static bool getCPUModel(char * model, size_t modelSize)
|
||||
return false;
|
||||
}
|
||||
|
||||
// trim any whitespace
|
||||
--cb;
|
||||
while (cb > 0 && isspace(model[cb-1]))
|
||||
--cb;
|
||||
model[cb] = '\0';
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user