diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2022-10-21 16:07:30 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2022-10-21 16:08:18 +0100 |
commit | 4eec9e06d26892a79b280228a3babcb1d731db39 (patch) | |
tree | ab3f3776569d4ba4f6f540835700d361c33ea195 /gpdl | |
parent | 253e26c536e92f78ae44b1862480b001a4933971 (diff) | |
download | ghostpdl-4eec9e06d26892a79b280228a3babcb1d731db39.tar.gz |
Fix buffer handling in ASCII code in txt handling.
Diffstat (limited to 'gpdl')
-rw-r--r-- | gpdl/txttop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gpdl/txttop.c b/gpdl/txttop.c index 73e4c7ac7..b1d2ea9e8 100644 --- a/gpdl/txttop.c +++ b/gpdl/txttop.c @@ -680,14 +680,13 @@ process_block(txt_interp_instance_t *instance, const byte *ptr, int n) return code; break; case TXT_STATE_ASCII: - do + while (instance->buffered > 0) { code = send_codepoint(instance, s[0]); if (code < 0) return code; drop_buffered(instance, 1); } - while (instance->buffered > 0); break; default: return_error(gs_error_Fatal); |