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