summaryrefslogtreecommitdiffstats
path: root/backend_kodak1400.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend_kodak1400.c')
-rw-r--r--backend_kodak1400.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend_kodak1400.c b/backend_kodak1400.c
index 8561b19..fb8655c 100644
--- a/backend_kodak1400.c
+++ b/backend_kodak1400.c
@@ -109,9 +109,9 @@ static int send_plane(struct kodak1400_ctx *ctx,
cmdbuf[3] = planeno;
if (planedata) {
- temp16 = htons(job->hdr.columns);
+ temp16 = be16_to_cpu(job->hdr.columns);
memcpy(cmdbuf+7, &temp16, 2);
- temp16 = htons(job->hdr.rows);
+ temp16 = be16_to_cpu(job->hdr.rows);
memcpy(cmdbuf+9, &temp16, 2);
}