RE: Epson GT-6500 parallel

Alessandro Russo (axela@bigfoot.com)
Wed, 02 Sep 1998 23:17:00 +0200 (CEST)

On 31-Aug-98 Oliver Graf wrote:
>
> System linux 2.0.35, XFree86 3.3.2, gtk+ 1.0.5
> Adapter Epson Parallel Card supplied with GT-6500 on 0x278
> Scanner Epson GT-6500 parallel
>
> Does only work for Gray scans. Lineart will kill xscanimage, Color
> pics come
> up wrong in preview and actual scan (diagonal moving image -- line to
> long /
> line offset).
the epson.c has a bug (his come up only for the scsi scanners):
Into scsi_write :
-------
static int
scsi_write (int fd, const void *buf, size_t buf_size, SANE_Status *
status)
{
unsigned char *cmd;
[...]
cmd = alloca (6 + buf_size);
[...]
if (SANE_STATUS_GOOD == (*status = sanei_scsi_cmd (fd, cmd1,
sizeof(cmd) +buf_size, NULL, NULL)))
--------
Obviusly sizeof(cmd) is wrong, should be:
if (SANE_STATUS_GOOD == (*status = sanei_scsi_cmd (fd, cmd1,
6+buf_size, NULL, NULL)))

btw there are some other bugs into epson.c (at least for scsi
scanners), and xscanimage quit when previewing an image.

bye,
Alex

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com