summaryrefslogtreecommitdiff
path: root/source/components/parser/psutils.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-12-14 22:56:53 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-12-14 22:56:53 +0000
commit9ff5d7eeed8c4043df7a61ffe5fd37b481537884 (patch)
treeae5d2fdb93f45dd3fa526aa0d7a67ad8e8c98ec7 /source/components/parser/psutils.c
parente692a0ddd0131f04acfda4c63b1a4c0c805feef5 (diff)
Notes
Diffstat (limited to 'source/components/parser/psutils.c')
-rw-r--r--source/components/parser/psutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/components/parser/psutils.c b/source/components/parser/psutils.c
index a04b2e50aabc..1b01c4b073a2 100644
--- a/source/components/parser/psutils.c
+++ b/source/components/parser/psutils.c
@@ -213,7 +213,7 @@ AcpiPsInitOp (
Op->Common.DescriptorType = ACPI_DESC_TYPE_PARSER;
Op->Common.AmlOpcode = Opcode;
- ACPI_DISASM_ONLY_MEMBERS (strncpy (Op->Common.AmlOpName,
+ ACPI_DISASM_ONLY_MEMBERS (AcpiUtSafeStrncpy (Op->Common.AmlOpName,
(AcpiPsGetOpcodeInfo (Opcode))->Name,
sizeof (Op->Common.AmlOpName)));
}
@@ -293,7 +293,7 @@ AcpiPsAllocOp (
AcpiGbl_CurrentScope = Op;
}
- if (Gbl_CaptureComments)
+ if (AcpiGbl_CaptureComments)
{
ASL_CV_TRANSFER_COMMENTS (Op);
}