未验证 提交 4691be3f 编写于 作者: M MikhailKrichanov 提交者: GitHub

OpenLinuxBoot: Fixed memory access (#393)

上级 b1b6efb9
......@@ -182,7 +182,7 @@ CreateRootPartuuid (
return EFI_OUT_OF_RESOURCES;
}
NumPrinted = AsciiSPrint (*Dest, Length + 1, "%a%g", "root=PARTUUID=", gPartuuid);
NumPrinted = AsciiSPrint (*Dest, Length + 1, "%a%g", "root=PARTUUID=", &gPartuuid);
ASSERT (NumPrinted == Length);
//
......@@ -450,7 +450,7 @@ InsertRootOption (
DEBUG ((
(gLinuxBootFlags & LINUX_BOOT_LOG_VERBOSE) == 0 ? DEBUG_VERBOSE : DEBUG_INFO,
"LNX: Creating \"root=PARTUUID=%g\"\n",
gPartuuid
&gPartuuid
));
NewOption = OcFlexArrayInsertItem (Options, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册