diff options
Diffstat (limited to 'source/components/executer/exconvrt.c')
-rw-r--r-- | source/components/executer/exconvrt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/components/executer/exconvrt.c b/source/components/executer/exconvrt.c index 360f16cc1708..31666876daf3 100644 --- a/source/components/executer/exconvrt.c +++ b/source/components/executer/exconvrt.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 @@ -388,7 +388,7 @@ AcpiExConvertToBuffer ( /* Copy the string to the buffer */ NewBuf = ReturnDesc->Buffer.Pointer; - strncpy ((char *) NewBuf, (char *) ObjDesc->String.Pointer, + memcpy ((char *) NewBuf, (char *) ObjDesc->String.Pointer, ObjDesc->String.Length); break; |