[sane-devel] Fix for array subscript error in niash.c

2007-02-22 Thread Johannes Meixner
Hello, On Feb 21 20:46 Bertrik Sikken wrote (shortened): > Johannes Meixner wrote: > > https://bugzilla.novell.com/show_bug.cgi?id=246654 ... > The optLast option is indeed used to signify the number of available > options. By placing an option behind optLast, it becomes invisible and > inaccessi

[sane-devel] Fix for array subscript error in niash.c

2007-02-21 Thread Bertrik Sikken
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johannes Meixner wrote: > Hello, > > the newest GNU compiler found an array subscript error > in backend/niash.c of sane-backends-1.0.18, see > https://bugzilla.novell.com/show_bug.cgi?id=246654 > > It happens because the arrays are defined with a si

[sane-devel] Fix for array subscript error in niash.c

2007-02-21 Thread Johannes Meixner
Hello, the newest GNU compiler found an array subscript error in backend/niash.c of sane-backends-1.0.18, see https://bugzilla.novell.com/show_bug.cgi?id=246654 It happens because the arrays are defined with a size of optLast but actually optLast is not the last entry in the enumeration. Therefo