mirror of https://github.com/acidanthera/audk.git
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;
|
||||
}
|
||||
|
||||
memset (Buffer, 0, FileSize + BUFFER_SIZE);
|
||||
fread (Buffer, FileSize, 1, InFile);
|
||||
|
||||
Ptrx = Buffer;
|
||||
|
|
Loading…
Reference in New Issue