summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2023-03-08 19:12:08 +0000
committerRobin Watts <Robin.Watts@artifex.com>2023-03-08 19:15:05 +0000
commit6841d770c84b4124511d81b71c5ec1eaedcf105b (patch)
tree6a6bfdd575e74044247f9186b372b6d0476477a2 /pdf
parentbdd007f7cee19de3c9897351d24ae1c7ad39208f (diff)
downloadghostpdl-6841d770c84b4124511d81b71c5ec1eaedcf105b.tar.gz
Fix typo in pdf ToUnicode text handling.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf_font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_font.c b/pdf/pdf_font.c
index 5862320bf..fbc935e03 100644
--- a/pdf/pdf_font.c
+++ b/pdf/pdf_font.c
@@ -1779,7 +1779,7 @@ int pdfi_tounicode_char_to_unicode(pdf_context *ctx, pdf_cmap *tounicode, gs_gly
if (ucode != NULL && length >= l) {
ucode[0] = counter.entry.value.data[0];
ucode[1] = counter.entry.value.data[1];
- ucode[2] = counter.entry.value.data[1];
+ ucode[2] = counter.entry.value.data[2];
ucode[3] = counter.entry.value.data[3];
}
}