OcAppleKernelLib: Fix kext bundle version copying, thanks @mhaeuser

This commit is contained in:
PMheart 2022-07-12 10:08:49 +02:00
parent a64adfef26
commit b06c6b3fcb
4 changed files with 5 additions and 5 deletions

View File

@ -960,7 +960,7 @@ CachelessContextAddKext (
}
BundleVerStr = XmlNodeContent (InfoPlistValue);
AsciiStrnCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr, AsciiStrLen (BundleVerStr));
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr);
}
DEBUG_CODE_END ();

View File

@ -1285,7 +1285,7 @@ MkextInjectKext (
}
BundleVerStr = XmlNodeContent (KextPlistValue);
AsciiStrnCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr, AsciiStrLen (BundleVerStr));
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr);
break;
}
}

View File

@ -1099,7 +1099,7 @@ PrelinkedInjectKext (
}
BundleVerStr = XmlNodeContent (KextPlistValue);
AsciiStrnCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr, AsciiStrLen (BundleVerStr));
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr);
break;
}
}

View File

@ -724,7 +724,7 @@ WrapMain (
// Assume no bundle version from the beginning.
// 'v' will be printed in the message, and hence is omitted here.
//
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, "ersion available");
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, "ersion unavailable");
Status = PrelinkedInjectKext (
&Context,
NULL,
@ -786,7 +786,7 @@ WrapMain (
// Assume no bundle version from the beginning.
// 'v' will be printed in the message, and hence is omitted here.
//
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, "ersion available");
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, "ersion unavailable");
Status = PrelinkedInjectKext (
&Context,
NULL,