aboutsummaryrefslogtreecommitdiff
path: root/source/compiler/aslprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/aslprintf.c')
-rw-r--r--source/compiler/aslprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/compiler/aslprintf.c b/source/compiler/aslprintf.c
index d11b17ca67d1..3727c41f28b0 100644
--- a/source/compiler/aslprintf.c
+++ b/source/compiler/aslprintf.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -294,7 +294,7 @@ OpcParsePrintf (
if (StringToProcess)
{
NewString = UtLocalCacheCalloc (StringLength + 1);
- strncpy (NewString, StartPosition, StringLength);
+ memcpy (NewString, StartPosition, StringLength);
NewOp = TrAllocateOp (PARSEOP_STRING_LITERAL);
NewOp->Asl.Value.String = NewString;
@@ -383,7 +383,7 @@ OpcParsePrintf (
if (StringToProcess)
{
NewString = UtLocalCacheCalloc (StringLength + 1);
- strncpy (NewString, StartPosition, StringLength);
+ memcpy (NewString, StartPosition, StringLength);
NewOp = TrAllocateOp (PARSEOP_STRING_LITERAL);
NewOp->Asl.Value.String = NewString;