summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2012-10-12 14:17:02 -0700
committerRobert Moore <Robert.Moore@intel.com>2012-10-12 14:17:02 -0700
commitfe0d1f9f5a94844be35c5f24b6cdeed38f62ec32 (patch)
tree782a6ad8581f077b95efc14b430a3670c3f553a4
parent4322675fc9c2010df4f2ffdf7672ba10055b03ff (diff)
downloadacpica-fe0d1f9f5a94844be35c5f24b6cdeed38f62ec32.tar.gz
Fix externalize name to complete migration to ACPI_MOVE_NAME.
Fix for name segment copy and validation.
-rw-r--r--source/components/namespace/nsutils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/components/namespace/nsutils.c b/source/components/namespace/nsutils.c
index 19cd39c1d..3b7d50c49 100644
--- a/source/components/namespace/nsutils.c
+++ b/source/components/namespace/nsutils.c
@@ -727,8 +727,10 @@ AcpiNsExternalizeName (
(*ConvertedName)[j++] = '.';
}
- ACPI_MOVE_NAME (*ConvertedName, InternalName);
- AcpiUtRepairName (*ConvertedName);
+ /* Copy and validate the 4-char name segment */
+
+ ACPI_MOVE_NAME (&(*ConvertedName)[j], &InternalName[NamesIndex]);
+ AcpiUtRepairName (&(*ConvertedName)[j]);
j += ACPI_NAME_SIZE;
NamesIndex += ACPI_NAME_SIZE;