summaryrefslogtreecommitdiff
path: root/source/compiler/dtsubtable.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2014-09-29 19:53:38 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2014-09-29 19:53:38 +0000
commitd4e301bc21b6911ed7f5d6a86659c4882fa7ab55 (patch)
treec09826b28ca0b50455664fa1d18a4efff33181e4 /source/compiler/dtsubtable.c
parent754171ae60abbbd707ed8d449f07ef38f596bd22 (diff)
Notes
Diffstat (limited to 'source/compiler/dtsubtable.c')
-rw-r--r--source/compiler/dtsubtable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/compiler/dtsubtable.c b/source/compiler/dtsubtable.c
index a87198d39a65..d4394e38c366 100644
--- a/source/compiler/dtsubtable.c
+++ b/source/compiler/dtsubtable.c
@@ -73,13 +73,15 @@ DtCreateSubtable (
DT_SUBTABLE **RetSubtable)
{
DT_SUBTABLE *Subtable;
+ char *String;
Subtable = UtSubtableCacheCalloc ();
/* Create a new buffer for the subtable data */
- Subtable->Buffer = ACPI_CAST_PTR (UINT8, UtStringCacheCalloc (Length));
+ String = UtStringCacheCalloc (Length);
+ Subtable->Buffer = ACPI_CAST_PTR (UINT8, String);
ACPI_MEMCPY (Subtable->Buffer, Buffer, Length);
Subtable->Length = Length;