summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2019-08-08 10:46:39 +0100
committerChris Liddell <chris.liddell@artifex.com>2019-08-15 09:56:16 +0100
commit7ca1bb5794997e0dba059a5be6f85a9eaefc915d (patch)
treeb995405489076295a5eeaeae429c7eb8f312d717
parent34dac4d2a1b195536fcb9d796168cd1360c0e500 (diff)
downloadghostpdl-7ca1bb5794997e0dba059a5be6f85a9eaefc915d.tar.gz
Fix gs_add_explicit_control_path()
it was always adding to the "read" list, rather than the list requested by the parameter.
-rw-r--r--base/gslibctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gslibctx.c b/base/gslibctx.c
index 6e57fe025..b69d55344 100644
--- a/base/gslibctx.c
+++ b/base/gslibctx.c
@@ -628,7 +628,7 @@ gs_add_explicit_control_path(gs_memory_t *mem, const char *arg, gs_path_control_
int code = 0;
while (code >= 0 && p1 < lim && (p2 = strchr(p1, (int)gp_file_name_list_separator)) != NULL) {
- code = gs_add_control_path_len(mem, gs_permit_file_reading, p1, (int)(p2 - p1));
+ code = gs_add_control_path_len(mem, control, p1, (int)(p2 - p1));
p1 = p2 + 1;
}
if (p1 < lim)