From 86e94f4ac956e0aed23de30c7a458d215f54749a Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 19 Dec 2013 05:51:01 +0000 Subject: Import ACPICA 20131218. --- source/common/adfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/common/adfile.c') diff --git a/source/common/adfile.c b/source/common/adfile.c index dd5abee39849f..27271eeccca80 100644 --- a/source/common/adfile.c +++ b/source/common/adfile.c @@ -199,6 +199,7 @@ FlGenerateFilename ( { char *Position; char *NewFilename; + char *DirectoryPosition; /* @@ -211,8 +212,10 @@ FlGenerateFilename ( /* Try to find the last dot in the filename */ + DirectoryPosition = strrchr (NewFilename, '/'); Position = strrchr (NewFilename, '.'); - if (Position) + + if (Position && (Position > DirectoryPosition)) { /* Tack on the new suffix */ -- cgit v1.2.3