summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BasePrintLib
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-13 04:19:34 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-13 04:19:34 +0000
commitd08b357f8ac448f8e7180f920faa4b335e1fc65e (patch)
tree53d77f772a283e745438e7b65289d2aed23c941c /MdePkg/Library/BasePrintLib
parent12e17a0aee55f17840745b0f6c1a15cd47a4aded (diff)
downloadedk2-platforms-d08b357f8ac448f8e7180f920faa4b335e1fc65e.tar.xz
1.Fix SetMem64.S to not use SSE3 instruction
2.Make sure NULL-terminator can be appended. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@945 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BasePrintLib')
-rw-r--r--MdePkg/Library/BasePrintLib/PrintLib.c2
-rw-r--r--MdePkg/Library/BasePrintLib/PrintLibInternal.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BasePrintLib/PrintLib.c b/MdePkg/Library/BasePrintLib/PrintLib.c
index 6b4f1fad4a..455fd60526 100644
--- a/MdePkg/Library/BasePrintLib/PrintLib.c
+++ b/MdePkg/Library/BasePrintLib/PrintLib.c
@@ -550,7 +550,7 @@ BasePrintLibVSPrint (
//
// Null terminate the Unicode or ASCII string
//
- BasePrintLibFillBuffer (Buffer, EndBuffer, 1, 0, BytesPerOutputCharacter);
+ BasePrintLibFillBuffer (Buffer, EndBuffer + BytesPerOutputCharacter, 1, 0, BytesPerOutputCharacter);
//
// Make sure output buffer cannot contain more than PcdMaximumUnicodeStringLength
// Unicode characters if PcdMaximumUnicodeStringLength is not zero.
diff --git a/MdePkg/Library/BasePrintLib/PrintLibInternal.c b/MdePkg/Library/BasePrintLib/PrintLibInternal.c
index 0a75a3c581..a52e1d4a6a 100644
--- a/MdePkg/Library/BasePrintLib/PrintLibInternal.c
+++ b/MdePkg/Library/BasePrintLib/PrintLibInternal.c
@@ -193,7 +193,7 @@ BasePrintLibConvertValueToString (
}
}
- BasePrintLibFillBuffer (Buffer, EndBuffer, 1, 0, Increment);
+ BasePrintLibFillBuffer (Buffer, EndBuffer + Increment, 1, 0, Increment);
return ((Buffer - OriginalBuffer) / Increment);
}