Fix a bug that length might be a negative value for worker function BasePrintLibFillBuffer(). In view of this, it is better to reuse for loop to fill the buffer.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7300 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2009-01-19 05:18:23 +00:00
parent 3069bc1944
commit a2bc29c4b1
3 changed files with 12 additions and 12 deletions

View File

@ -19,7 +19,6 @@
#include <Library/PrintLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
//
@ -118,6 +117,7 @@ BasePrintLibSPrint (
@param EndBuffer The end of the input Buffer. No characters will be
placed after that.
@param Length Count of character to be placed into Buffer.
(Negative value indicates no buffer fill.)
@param Character Character to be placed into Buffer.
@param Increment Character increment in Buffer.