diff options
Diffstat (limited to 'psi/ziodevsc.c')
-rw-r--r-- | psi/ziodevsc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psi/ziodevsc.c b/psi/ziodevsc.c index 203adcfa..1bba4f4b 100644 --- a/psi/ziodevsc.c +++ b/psi/ziodevsc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2019 Artifex Software, Inc. +/* Copyright (C) 2001-2020 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -107,7 +107,7 @@ s_stdin_read_process(stream_state * st, stream_cursor_read * ignore_pr, /* do the callout */ if (core->stdin_fn) count = (*core->stdin_fn) - (core->caller_handle, (char *)pw->ptr + 1, + (core->std_caller_handle, (char *)pw->ptr + 1, core->stdin_is_interactive ? 1 : wcount); else count = gp_stdin_read((char *)pw->ptr + 1, wcount, @@ -196,7 +196,7 @@ s_stdout_write_process(stream_state * st, stream_cursor_read *pr, if (count == 0) return 0; written = outwrite(st->memory, (const char *)pr->ptr + 1, count); - if (written < count) + if (written != count) return ERRC; pr->ptr += written; return 0; |