//\r
// Null terminate the Unicode or ASCII string\r
//\r
- BasePrintLibFillBuffer (Buffer, EndBuffer, 1, 0, BytesPerOutputCharacter);\r
+ BasePrintLibFillBuffer (Buffer, EndBuffer + BytesPerOutputCharacter, 1, 0, BytesPerOutputCharacter);\r
//\r
// Make sure output buffer cannot contain more than PcdMaximumUnicodeStringLength\r
// Unicode characters if PcdMaximumUnicodeStringLength is not zero. \r