[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1595-g935408d
[email protected] (Chris Liddell)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via 935408d6205742e40471b18d7f0f1fe4febc437c (commit)
from 4041906852365a602c2f9e011703e4174bdc8040 (commit)
----------------------------------------------------------------------
commit 935408d6205742e40471b18d7f0f1fe4febc437c
Author: Chris Liddell <[email protected]>
Date: Wed Aug 21 15:33:27 2019 +0100
Fix commit ec0b35fed3de: "Handle directory separators..."
The logic in the above fix was wrong.
diff --git a/base/gpmisc.c b/base/gpmisc.c
index 30137b6..494e165 100644
--- a/base/gpmisc.c
+++ b/base/gpmisc.c
@@ -975,8 +975,8 @@ validate(const gs_memory_t *mem,
/* PATH=abcd pattern=abc */
break; /* No match */
} else if (*a != *b
- && gs_file_name_check_separator(a, 1, a)
- != gs_file_name_check_separator(b, 1, b)) {
+ && (gs_file_name_check_separator(a, 1, a) == 1
+ && gs_file_name_check_separator(b, 1, b) == 1)) {
/* On Windows we can get random combinations of "/" and "\" as directory
* separators, and we want "C:\" to match C:/" hence using the pair of
* gs_file_name_check_separator() calls */
Summary of changes:
base/gpmisc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)