diff options
Diffstat (limited to 'source/components/utilities/utnonansi.c')
-rw-r--r-- | source/components/utilities/utnonansi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/components/utilities/utnonansi.c b/source/components/utilities/utnonansi.c index 9c3ca8e8de50..ba5b3ee6c723 100644 --- a/source/components/utilities/utnonansi.c +++ b/source/components/utilities/utnonansi.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 @@ -353,7 +353,7 @@ AcpiUtSafeStrncpy ( { /* Always terminate destination string */ - strncpy (Dest, Source, DestSize); + memcpy (Dest, Source, DestSize); Dest[DestSize - 1] = 0; } |