diff options
Diffstat (limited to 'source/compiler/dtsubtable.c')
-rw-r--r-- | source/compiler/dtsubtable.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/compiler/dtsubtable.c b/source/compiler/dtsubtable.c index a87198d..d4394e3 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; |