kopia lustrzana https://gitlab.com/sane-project/backends
Off-by-one error
rodzic
64e53087da
commit
cbd43ed18a
|
@ -1,3 +1,7 @@
|
|||
2005-10-05 Mattias Ellert <mattias.ellert@tsl.uu.se>
|
||||
|
||||
* backend/microtek2.c: Off-by-one error
|
||||
|
||||
2005-10-03 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
* AUTHORS acinclude.m4 configure configure.in backend/Makefile.in
|
||||
|
|
|
@ -3576,7 +3576,7 @@ sane_get_option_descriptor(SANE_Handle handle, SANE_Int n)
|
|||
DBG(255, "sane_get_option_descriptor: handle=%p, sod=%p, opt=%d\n",
|
||||
(void *) handle, (void *) ms->sod, n);
|
||||
|
||||
if ( n < 0 || n > NUM_OPTIONS )
|
||||
if ( n < 0 || n >= NUM_OPTIONS )
|
||||
{
|
||||
DBG(30, "sane_get_option_descriptor: invalid option %d\n", n);
|
||||
return NULL;
|
||||
|
|
Ładowanie…
Reference in New Issue