diff options
Diffstat (limited to 'source/compiler/prutils.c')
-rw-r--r-- | source/compiler/prutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/compiler/prutils.c b/source/compiler/prutils.c index 516f02f37d6e..f516c30fe70f 100644 --- a/source/compiler/prutils.c +++ b/source/compiler/prutils.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 @@ -474,7 +474,7 @@ ResetHere2: * at the correct offset value which is resetted every iteration */ JumpHere2: - strncpy (AslGbl_MacroTokenReplaceBuffer, AslGbl_MacroTokenBuffer, Args->Offset[i]); + memcpy (AslGbl_MacroTokenReplaceBuffer, AslGbl_MacroTokenBuffer, Args->Offset[i]); strcat (AslGbl_MacroTokenReplaceBuffer, Token); strcat (AslGbl_MacroTokenReplaceBuffer, (AslGbl_MacroTokenBuffer + (Args->Offset[i] + strlen (Args->Name)))); |