summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gs/base/gdevpsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gs/base/gdevpsd.c b/gs/base/gdevpsd.c
index 8251bcd73..fbb920338 100644
--- a/gs/base/gdevpsd.c
+++ b/gs/base/gdevpsd.c
@@ -1311,7 +1311,7 @@ psd_write_image_data(psd_write_ctx *xc, gx_device_printer *pdev)
// if (link == NULL) {
if (base_bytes_pp == 3) {
/* RGB */
- memcpy(unpacked, sep_line, xc->width);
+ memcpy(sep_line, npacked, xc->width);
} else {
for (i = 0; i < xc->width; ++i) {
/* CMYK + spots*/
@@ -1359,4 +1359,4 @@ psd_print_page(gx_device_printer *pdev, FILE *file)
free_separation_names(pdev->memory, &(psd_dev->devn_params.separations));
psd_dev->devn_params.num_separation_order_names = 0;
return 0;
-} \ No newline at end of file
+}