diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2025-04-10 03:51:28 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2025-04-10 03:51:28 +0000 |
commit | 97a7606d897edfa3089cb04eea70096a1f9cf734 (patch) | |
tree | c60774fdb1d10ddd5e2e7ea473de288f62458881 /source/compiler/dtio.c | |
parent | 98a2c01a889887800ea689bbbed0c3c240712fc5 (diff) |
Diffstat (limited to 'source/compiler/dtio.c')
-rw-r--r-- | source/compiler/dtio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/compiler/dtio.c b/source/compiler/dtio.c index 7883095af443..2ee882a1ec2b 100644 --- a/source/compiler/dtio.c +++ b/source/compiler/dtio.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 @@ -285,7 +285,7 @@ DtTrim ( ReturnString = UtLocalCacheCalloc (Length + 1); if (strlen (Start)) { - strncpy (ReturnString, Start, Length); + memcpy (ReturnString, Start, Length); } ReturnString[Length] = 0; @@ -377,7 +377,7 @@ DtParseLine ( Length = ACPI_PTR_DIFF (End, Start); TmpName = UtLocalCalloc (Length + 1); - strncpy (TmpName, Start, Length); + memcpy (TmpName, Start, Length); Name = DtTrim (TmpName); ACPI_FREE (TmpName); @@ -425,7 +425,7 @@ DtParseLine ( Length = ACPI_PTR_DIFF (End, Start); TmpValue = UtLocalCalloc (Length + 1); - strncpy (TmpValue, Start, Length); + memcpy (TmpValue, Start, Length); Value = DtTrim (TmpValue); ACPI_FREE (TmpValue); |