aboutsummaryrefslogtreecommitdiffstats
path: root/source/components/utilities/utids.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/utilities/utids.c')
-rw-r--r--source/components/utilities/utids.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/components/utilities/utids.c b/source/components/utilities/utids.c
index e296c00a0bea..34ae697ab3c2 100644
--- a/source/components/utilities/utids.c
+++ b/source/components/utilities/utids.c
@@ -435,7 +435,7 @@ AcpiUtExecute_CID (
* 3) Size of the actual CID strings
*/
CidListSize = sizeof (ACPI_PNP_DEVICE_ID_LIST) +
- ((Count - 1) * sizeof (ACPI_PNP_DEVICE_ID)) +
+ (Count * sizeof (ACPI_PNP_DEVICE_ID)) +
StringAreaSize;
CidList = ACPI_ALLOCATE_ZEROED (CidListSize);