mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-24 23:40:39 +01:00
[v0.89][ARM][BUGFIX] Fix obscure bug where cpufetch failed if cpuinfo did not start with "processor" string
This commit is contained in:
@@ -73,7 +73,7 @@ uint32_t get_midr_from_cpuinfo(uint32_t core, bool* success) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
char* tmp = buf;
|
||||
char* tmp = strstr(buf, CPUINFO_CPU_STRING);
|
||||
uint32_t current_core = 0;
|
||||
while(core != current_core && tmp != NULL) {
|
||||
tmp++;
|
||||
|
||||
Reference in New Issue
Block a user