backend/plustek: fix "color-banding" on 64bit

Fixes https://gitlab.com/sane-project/backends/issues/42
merge-requests/37/head
Michał Wróbel 2018-12-09 22:21:18 +01:00
rodzic dc3e6e6e41
commit d71f5e4bc8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1822,7 +1822,7 @@ static void usb_procHighlightAndShadow( Plustek_Device *dev, ScanParam *sp,
pg = pr + sp->Size.dwPhyPixels;
pb = pg + sp->Size.dwPhyPixels;
memset(pr, 0, sp->Size.dwPhyPixels * 4UL * 3UL);
memset(pr, 0, sp->Size.dwPhyPixels * sizeof(*pr) * 3UL);
/* Sort hilight */
usb_CalSortHighlight(dev, sp, hilight, shading_lines);