diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2023-01-27 18:19:24 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2023-02-06 11:38:51 +0000 |
commit | d884407aa1240eff1bd3678944d007c265621de6 (patch) | |
tree | 774de5661f05e555ba2cf7c509892dd9df4a1676 /gpdl | |
parent | a4eb716f1c0564e08c71a787b209fca033289df5 (diff) | |
download | ghostpdl-d884407aa1240eff1bd3678944d007c265621de6.tar.gz |
Avoid warnings in GPDL with stream init.
Use the stream init functions.
Diffstat (limited to 'gpdl')
-rw-r--r-- | gpdl/txttop.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gpdl/txttop.c b/gpdl/txttop.c index b1d2ea9e8..f84818025 100644 --- a/gpdl/txttop.c +++ b/gpdl/txttop.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2022 Artifex Software, Inc. +/* Copyright (C) 2023 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -285,8 +285,7 @@ send_bytes(txt_interp_instance_t *instance, const byte *p, int n) debug_as_pcl(p, n); #endif - cursor.ptr = p-1; - cursor.limit = cursor.ptr + n; + stream_cursor_read_init(&cursor, p, n); return instance->sub->proc_process(instance->sub, &cursor); } |