summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-30 02:09:07 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-30 02:09:07 +0000
commita7aa21c958525fd57c113d49c89b93f4993fac43 (patch)
treed52cccad19113eeae3e39c90c16226757620d5c8 /Tools
parentac242ae4a16964489ab9107f119ef1a4fcfdc1f6 (diff)
downloadedk2-a7aa21c958525fd57c113d49c89b93f4993fac43.tar.gz
edk2-a7aa21c958525fd57c113d49c89b93f4993fac43.tar.bz2
edk2-a7aa21c958525fd57c113d49c89b93f4993fac43.zip
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.c1
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;