From: Bastian Dehn Date: Mon, 27 Oct 2025 15:07:11 +0000 (+0100) Subject: fix set highes dpi option X-Git-Tag: v1.1.19^2~1 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=d67f4aca6fd314a40a31bc0254ee8a59e934a0b7;p=sane-kds-s2000w-net.git fix set highes dpi option --- diff --git a/src/kds_s2000w_handler_opts.c b/src/kds_s2000w_handler_opts.c index 898fdcd..144de49 100644 --- a/src/kds_s2000w_handler_opts.c +++ b/src/kds_s2000w_handler_opts.c @@ -206,7 +206,7 @@ bool _kds_s2000w_opts_validate(SANE_Option_Descriptor* descriptor, const void* v if (descriptor->constraint_type == SANE_CONSTRAINT_WORD_LIST) { const int32_t* int_value = (const int32_t*) value; - for (int32_t i = 1; i < descriptor->constraint.word_list[0]; i++) { + for (int32_t i = 1; i <= descriptor->constraint.word_list[0]; i++) { if (*int_value == descriptor->constraint.word_list[i]) return true; }