]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbHook.c
MdeModulePkg EbcDxe: Fix CLANG38 build failure
[mirror_edk2.git] / MdeModulePkg / Universal / EbcDxe / EbcDebugger / EdbHook.c
index 7592defec0698b92b2dedb373c6bfcca24a6f6b8..c95a22db4d92e18545fe27267b22940da6e26fbe 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -134,7 +134,10 @@ EbcDebuggerPushCallstackDest (
     //\r
     ASSERT (mDebuggerPrivate.CallStackEntry[EFI_DEBUGGER_TRACE_MAX].Type == Type);\r
     for (Index = 0; Index < EFI_DEBUGGER_CALLSTACK_MAX; Index++) {\r
-      mDebuggerPrivate.CallStackEntry[Index] = mDebuggerPrivate.CallStackEntry[Index + 1];\r
+      CopyMem (&mDebuggerPrivate.CallStackEntry[Index],\r
+               &mDebuggerPrivate.CallStackEntry[Index + 1],\r
+               sizeof (mDebuggerPrivate.CallStackEntry[Index])\r
+               );\r
     }\r
     mDebuggerPrivate.CallStackEntry[EFI_DEBUGGER_CALLSTACK_MAX - 1].DestAddress = DestEntry;\r
     mDebuggerPrivate.CallStackEntryCount = EFI_DEBUGGER_CALLSTACK_MAX;\r