summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2012-05-25 12:18:20 -0400
committerJames Cloos <cloos@jhcloos.com>2012-05-25 12:18:20 -0400
commite17345a0aac485b088123bc337472ff8688f5bf2 (patch)
tree584816b784ce88916ae524cc188d271900e32267
parente21f69e10ddd68ea807773a8b57e10d23bd74a4f (diff)
Fix psdrgb.memcpy-fix
Commit 60640aeb33 got the arguments to memcpy(3) backwards. Signed-off-by: James Cloos <cloos@jhcloos.com>
-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
+}