]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Application/LinuxLoader/Arm/LinuxAtag.c
ArmPkg/LinuxLoader: eliminate calls to deprecated string functions
[mirror_edk2.git] / ArmPkg / Application / LinuxLoader / Arm / LinuxAtag.c
index fd7ee9c8624dabd09c3b2be53b0bb6d9e2662930..0b3e2489c7582d502e249f6e19a2d96f16deddb8 100644 (file)
@@ -72,7 +72,7 @@ SetupCmdlineTag (
     mLinuxKernelCurrentAtag->header.type = ATAG_CMDLINE;\r
 \r
     /* place CommandLine into tag */\r
-    AsciiStrCpy (mLinuxKernelCurrentAtag->body.cmdline_tag.cmdline, CmdLine);\r
+    AsciiStrCpyS (mLinuxKernelCurrentAtag->body.cmdline_tag.cmdline, LineLength, CmdLine);\r
 \r
     // move pointer to next tag\r
     mLinuxKernelCurrentAtag = next_tag_address (mLinuxKernelCurrentAtag);\r