diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-30 02:09:07 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-30 02:09:07 +0000 |
commit | a7aa21c958525fd57c113d49c89b93f4993fac43 (patch) | |
tree | d52cccad19113eeae3e39c90c16226757620d5c8 /Tools | |
parent | ac242ae4a16964489ab9107f119ef1a4fcfdc1f6 (diff) | |
download | edk2-platforms-a7aa21c958525fd57c113d49c89b93f4993fac43.tar.xz |
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
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/Source/TianoTools/GenDepex/GenDepex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/Source/TianoTools/GenDepex/GenDepex.c b/Tools/Source/TianoTools/GenDepex/GenDepex.c index 3adde2c1fc..3818649330 100644 --- a/Tools/Source/TianoTools/GenDepex/GenDepex.c +++ b/Tools/Source/TianoTools/GenDepex/GenDepex.c @@ -374,6 +374,7 @@ Returns: return EFI_ABORTED;
}
+ memset (Buffer, 0, FileSize + BUFFER_SIZE);
fread (Buffer, FileSize, 1, InFile);
Ptrx = Buffer;
|