Benjamin Hell wrote:
> While playing around, I found that xscanimage crashed
> whenever I wanted to scan with custom gamma table enabled:
>
> sanei_scsi.c:3701: failed assertion 'src_size == cmd_size'
>
> [1] + IOT instruction (core dumped) xscanimage
>
> Mmmh, appears to be a deja-vu :-)
Benjamin,
try patch #4, attached to this mail. The backend function
set_density_curve calls sanei_scsi_cmd with buffers for both writing
data to and reading data from the device set to non-zero.
Abel
--- canon-scsi.c.orig Tue Jun 13 11:09:47 2000
+++ canon-scsi.c Tue Jun 13 11:10:23 2000
@@ -461,7 +461,7 @@
{
cmd[i+10] = ((u_char *)buf)[i];
}
- status = sanei_scsi_cmd (fd, cmd, sizeof (cmd), buf, buf_size);
+ status = sanei_scsi_cmd (fd, cmd, sizeof (cmd), 0, 0);
DBG (31, "<< set_density_curve\n");
return (status);
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Tue Jun 13 2000 - 02:41:49 PDT