summaryrefslogtreecommitdiff
path: root/devices
diff options
context:
space:
mode:
Diffstat (limited to 'devices')
-rw-r--r--devices/vector/gdevpdfm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/devices/vector/gdevpdfm.c b/devices/vector/gdevpdfm.c
index f6b6c51f4..1db558279 100644
--- a/devices/vector/gdevpdfm.c
+++ b/devices/vector/gdevpdfm.c
@@ -555,10 +555,12 @@ pdfmark_put_ao_pairs(gx_device_pdf * pdev, cos_dict_t *pcd,
i += 4, j += 2;
} else
cstr[j++] = cstr[i++];
- if (j != i)
- pcv->contents.chars.data =
+ if (j != i) {
+ pcv->contents.chars.data =
gs_resize_string(pdev->pdf_memory, cstr, csize, j,
"pdfmark_put_ao_pairs");
+ pcv->contents.chars.size = j;
+ }
} else if (pdf_key_eq(pair, "/Rect")) {
gs_rect rect;
char rstr[MAX_RECT_STRING];