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:
jwang36 2006-09-30 02:09:07 +00:00
parent ac242ae4a1
commit a7aa21c958
1 changed files with 1 additions and 0 deletions

View File

@ -374,6 +374,7 @@ Returns:
return EFI_ABORTED;
}
memset (Buffer, 0, FileSize + BUFFER_SIZE);
fread (Buffer, FileSize, 1, InFile);
Ptrx = Buffer;