diff options
Diffstat (limited to 'EmbeddedPkg/Universal/MmcDxe/Diagnostics.c')
-rw-r--r-- | EmbeddedPkg/Universal/MmcDxe/Diagnostics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EmbeddedPkg/Universal/MmcDxe/Diagnostics.c b/EmbeddedPkg/Universal/MmcDxe/Diagnostics.c index 783e548d2a..7d6a5a0dde 100644 --- a/EmbeddedPkg/Universal/MmcDxe/Diagnostics.c +++ b/EmbeddedPkg/Universal/MmcDxe/Diagnostics.c @@ -42,9 +42,9 @@ DiagnosticLog ( )
{
UINTN len = StrLen (Str);
- if (len <= mLogRemainChar) {
+ if (len < mLogRemainChar) {
+ StrCpyS (mLogBuffer, mLogRemainChar, Str);
mLogRemainChar -= len;
- StrCpy (mLogBuffer, Str);
mLogBuffer += len;
return len;
} else {
|