mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
sz must be longer than target string
This commit is contained in:
1 parent
dff1af4bb5
commit
cbcfbca895
1 file changed
+1
-1
@@ -251,7 +251,7 @@ void CPUInfo::Detect()
|
||||
isVFP4 = true;
|
||||
#endif
|
||||
#endif // PPSSPP_PLATFORM(IOS)
|
||||
size_t sz;
|
||||
size_t sz = 0x41; // char brand_string[0x41]
|
||||
if (sysctlbyname("machdep.cpu.brand_string", brand_string, &sz, nullptr, 0) != 0) {
|
||||
strcpy(brand_string, "Unknown");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user