mirror of https://github.com/acidanthera/audk.git
Fix a bug by adding * for Ptr8
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10639 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b88bd019b4
commit
787cd144da
|
@ -196,7 +196,7 @@ PxeBcParseCachedDhcpPacket (
|
||||||
ASSERT (Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] != NULL);
|
ASSERT (Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] != NULL);
|
||||||
Ptr8 = (UINT8*)&Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE]->Data[0];
|
Ptr8 = (UINT8*)&Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE]->Data[0];
|
||||||
Ptr8 += Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE]->Length;
|
Ptr8 += Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE]->Length;
|
||||||
Ptr8 = '\0';
|
*Ptr8 = '\0';
|
||||||
|
|
||||||
} else if ((Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] == NULL) &&
|
} else if ((Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] == NULL) &&
|
||||||
(Offer->Dhcp4.Header.BootFileName[0] != 0)) {
|
(Offer->Dhcp4.Header.BootFileName[0] != 0)) {
|
||||||
|
|
Loading…
Reference in New Issue