diff options
author | jkim <jkim@FreeBSD.org> | 2014-09-29 19:53:38 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2014-09-29 19:53:38 +0000 |
commit | 4a5720e5f30ea6a8d31e75f94046c76ace845126 (patch) | |
tree | c09826b28ca0b50455664fa1d18a4efff33181e4 /source/compiler/dtsubtable.c | |
parent | 9f91b0b83a53651519b3bbe3b8c1f2a324da984e (diff) | |
download | FreeBSD-src-4a5720e5f30ea6a8d31e75f94046c76ace845126.zip FreeBSD-src-4a5720e5f30ea6a8d31e75f94046c76ace845126.tar.gz |
Import ACPICA 20140926.
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; |