Patch for Microtek V6USL

Bernd Schroeder (Bernd.M.Schroeder@gmx.de)
Mon, 3 May 1999 00:17:24 +0200 (MEST)

This is a MIME encapsulated multipart message -
please use a MIME-compliant e-mail program to open it.

Dies ist eine mehrteilige Nachricht im MIME-Format -
bitte verwenden Sie zum Lesen ein MIME-konformes Mailprogramm.

--========GMXBoundary23140925683444
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,

this is a patch against the v0.7 version of the microtek2 backend
that I had uploaded to our ftp server earlier today.

A bug crept in that lets the V6USL crash with a segfault.

The problem is, that the V6USL apparently doesn't allow to send
gamma values to the scanner, and I overlooked one place where
this is relevant. Hopefully the patch helps.

Thanks to Lee Bartolotti for reporting the bug and indicating the
offending statement.

Bernd

-- 
This is a temporary address. Please send emails to

mailto:bernd@aquila.muc.de

--========GMXBoundary23140925683444 Content-Type: text/plain; name="v6usl.diff" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="v6usl.diff"

LS0tIG1pY3JvdGVrMi5jLm9yaWcJU3VuIE1heSAgMiAyMzo0Mzo0NiAxOTk5CisrKyBtaWNyb3Rl azIuYwlTdW4gTWF5ICAyIDIzOjQ2OjE2IDE5OTkKQEAgLTI5NTUsNyArMjk1NSw4IEBACiAgICAg bXMtPmV4cG9zdXJlX2cgPSAodV9pbnQ4X3QpIChtcy0+dmFsW09QVF9FWFBPU1VSRV9HXS53IC8g Mik7ICAgICAKICAgICBtcy0+ZXhwb3N1cmVfYiA9ICh1X2ludDhfdCkgKG1zLT52YWxbT1BUX0VY UE9TVVJFX0JdLncgLyAyKTsgICAgIAogCi0gICAgbXMtPmdhbW1hX21vZGUgPSBzdHJkdXAoIChj aGFyICopIG1zLT52YWxbT1BUX0dBTU1BX01PREVdLnMpOworICAgIGlmICggISBNSV9MVVRDQVBf Tk9ORShtaS0+bHV0X2NhcCkgKSAKKyAgICAgICAgbXMtPmdhbW1hX21vZGUgPSBzdHJkdXAoIChj aGFyICopIG1zLT52YWxbT1BUX0dBTU1BX01PREVdLnMpOwogCiAgICAgcmV0dXJuIFNBTkVfU1RB VFVTX0dPT0Q7CiB9Cg== --========GMXBoundary23140925683444 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline

---
Sent through Global Message Exchange - http://www.gmx.net
--========GMXBoundary23140925683444--

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