[sane-devel] (patch) Small fixes for canon630u, coolscan and microtek2

Petter Reinholdtsen pere@hungry.com
Fri, 4 Oct 2002 16:16:12 +0200


[Frank Zago]
> What's the point of this one?

If sizeof(size_t) is bigger then sizeof(u_int32_t), than the call to
sanei_scsi_cmd() will write outside the space allocated for
ms->n_control_bytes.  If it is smaller, the value in
ms->n_control_bytes will be wrong.  It only work as it should if
size_t and u_int32_t is the same type.  This is not the case on 64-bit
machines.