From d67f4aca6fd314a40a31bc0254ee8a59e934a0b7 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 27 Oct 2025 16:07:11 +0100 Subject: [PATCH] fix set highes dpi option --- src/kds_s2000w_handler_opts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3