summaryrefslogtreecommitdiffstats
path: root/source/compiler/prutils.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-05-19 05:44:32 +0000
committerjkim <jkim@FreeBSD.org>2012-05-19 05:44:32 +0000
commit291c27508808bb5c9ab780eb971fe958491f1468 (patch)
tree83fbd480537714dcce335edc4aed3216f4e57816 /source/compiler/prutils.c
parenteb364ef2c90291c41e896d265d93fe21e48d02a7 (diff)
downloadFreeBSD-src-291c27508808bb5c9ab780eb971fe958491f1468.zip
FreeBSD-src-291c27508808bb5c9ab780eb971fe958491f1468.tar.gz
Import ACPICA 20120518.
Diffstat (limited to 'source/compiler/prutils.c')
-rw-r--r--source/compiler/prutils.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/source/compiler/prutils.c b/source/compiler/prutils.c
index a7c65bf..b0e1e14 100644
--- a/source/compiler/prutils.c
+++ b/source/compiler/prutils.c
@@ -246,13 +246,11 @@ PrOpenIncludeFile (
ASL_INCLUDE_DIR *NextDir;
- /*
- * start the actual include file on the next line
- */
+ /* Start the actual include file on the next line */
+
Gbl_CurrentLineOffset++;
/* Attempt to open the include file */
-
/* If the file specifies an absolute path, just open it */
if ((Filename[0] == '/') ||
@@ -330,13 +328,10 @@ PrOpenIncludeWithPrefix (
/* Build the full pathname to the file */
- Pathname = ACPI_ALLOCATE (strlen (PrefixDir) + strlen (Filename) + 1);
+ Pathname = FlMergePathnames (PrefixDir, Filename);
- strcpy (Pathname, PrefixDir);
- strcat (Pathname, Filename);
-
- DbgPrint (ASL_PARSE_OUTPUT, "\n" PR_PREFIX_ID
- "Opening include file: path %s\n",
+ DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID
+ "Include: Opening file - \"%s\"\n",
Gbl_CurrentLineNumber, Pathname);
/* Attempt to open the file, push if successful */
OpenPOWER on IntegriCloud