mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-21 12:44:50 +02:00
Added code to clear "Buffer" before using it. This is supposed to fix the odd issue happened in sscanf.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1648 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ac242ae4a1
commit
a7aa21c958
@ -374,6 +374,7 @@ Returns:
|
|||||||
return EFI_ABORTED;
|
return EFI_ABORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset (Buffer, 0, FileSize + BUFFER_SIZE);
|
||||||
fread (Buffer, FileSize, 1, InFile);
|
fread (Buffer, FileSize, 1, InFile);
|
||||||
|
|
||||||
Ptrx = Buffer;
|
Ptrx = Buffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user