summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorShi, Steven <steven.shi@intel.com>2016-08-03 17:43:05 +0800
committerLiming Gao <liming.gao@intel.com>2016-08-10 12:56:37 +0800
commitba601bddf8a36b4b63704596842c69b412741bbb (patch)
tree416de628a29f8fa0c2ceaf7458c631dd1f69a567 /ShellPkg
parent6f756db5ea057ff10dd168c7627163cec046a3d9 (diff)
ShellPkg-UefiShellTftpCommandLib: Replace compiler builtin
Use explicit CopyMem to replace compiler builtin to do the structure values assignment. This change is needed to pass CLANG38 build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Steven Shi <steven.shi@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg')
-rwxr-xr-x[-rw-r--r--]ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c b/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
index 666ee9d8ea..5c50797631 100644..100755
--- a/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
+++ b/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c
@@ -342,7 +342,7 @@ ShellCommandRunTftp (
goto Error;
}
- Mtftp4ConfigData = DefaultMtftp4ConfigData;
+ CopyMem (&Mtftp4ConfigData, &DefaultMtftp4ConfigData, sizeof (EFI_MTFTP4_CONFIG_DATA));
//
// Check the host IPv4 address