mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v0.88][ARM][BUGFIX] Fix bugs in single CPU SoCs and small bugs related to strings
This commit is contained in:
@@ -129,6 +129,7 @@ int get_ncores_from_cpuinfo() {
|
||||
char* tmp1 = strstr(buf, "-") + 1;
|
||||
char* tmp2 = strstr(buf, "\n");
|
||||
char ncores_str[offset];
|
||||
memset(ncores_str, 0, sizeof(char) * offset);
|
||||
memcpy(ncores_str, tmp1, tmp2-tmp1);
|
||||
|
||||
char* end;
|
||||
|
||||
Reference in New Issue
Block a user