diff options
Diffstat (limited to 'sys/contrib/dev/acpica/nsnames.c')
-rw-r--r-- | sys/contrib/dev/acpica/nsnames.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/contrib/dev/acpica/nsnames.c b/sys/contrib/dev/acpica/nsnames.c index 44731d2..644141c 100644 --- a/sys/contrib/dev/acpica/nsnames.c +++ b/sys/contrib/dev/acpica/nsnames.c @@ -1,7 +1,7 @@ /******************************************************************************* * * Module Name: nsnames - Name manipulation and search - * $Revision: 64 $ + * $Revision: 65 $ * ******************************************************************************/ @@ -250,13 +250,6 @@ AcpiNsGetPathnameLength ( Size += PATH_SEGMENT_LENGTH; } - /* Special case for size still 0 - no parent for "special" nodes */ - - if (!Size) - { - Size = PATH_SEGMENT_LENGTH; - } - return (Size + 1); } @@ -327,6 +320,13 @@ AcpiNsHandleToPathname ( goto Exit; } + if (Size < ACPI_NAME_SIZE) + { + UserBuffer[0] = '\\'; + UserBuffer[1] = 0; + goto Exit; + } + /* Store null terminator */ UserBuffer[Size] = 0; |