mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-30 12:43:41 +01:00
AsciiSPrint format error in ATIConnectorsPatchInit. Switch to snprintf.
This commit is contained in:
parent
6d54a4c0b6
commit
79c36b193d
@ -284,16 +284,16 @@ VOID ATIConnectorsPatchInit(LOADER_ENTRY *Entry)
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Lion, SnowLeo 10.6.7 2011 MBP
|
// Lion, SnowLeo 10.6.7 2011 MBP
|
||||||
AsciiSPrint(ATIKextBundleId[0],
|
snprintf(ATIKextBundleId[0],
|
||||||
sizeof(ATIKextBundleId[0]),
|
sizeof(ATIKextBundleId[0]),
|
||||||
"com.apple.kext.ATI%aController",
|
"com.apple.kext.ATI%sController", // when it was AsciiSPrint, %a was used with KPATIConnectorsController which is CHAR16 ??? Result is printing stop at first char <= 255
|
||||||
Entry->KernelAndKextPatches->KPATIConnectorsController
|
(CHAR8*)Entry->KernelAndKextPatches->KPATIConnectorsController // cast to CHAR8* to not change behavior. Looks like a bug though
|
||||||
);
|
);
|
||||||
// ML
|
// ML
|
||||||
AsciiSPrint(ATIKextBundleId[1],
|
snprintf(ATIKextBundleId[1],
|
||||||
sizeof(ATIKextBundleId[1]),
|
sizeof(ATIKextBundleId[1]),
|
||||||
"com.apple.kext.AMD%aController",
|
"com.apple.kext.AMD%sController", // when it was AsciiSPrint, %a was used with KPATIConnectorsController which is CHAR16 ??? Result is printing stop at first char <= 255
|
||||||
Entry->KernelAndKextPatches->KPATIConnectorsController
|
(CHAR8*)Entry->KernelAndKextPatches->KPATIConnectorsController // cast to CHAR8* to not change behavior. Looks like a bug though
|
||||||
);
|
);
|
||||||
|
|
||||||
ATIConnectorsPatchInited = TRUE;
|
ATIConnectorsPatchInited = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user