]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix array length multi feed response
authorBastian Dehn <hhaalo@arcor.de>
Fri, 31 Oct 2025 17:00:22 +0000 (18:00 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 31 Oct 2025 17:00:22 +0000 (18:00 +0100)
src/kds_s2000w_option_descriptors.c

index 815322b8d2f1970627a24e8eeed34a9fb914ebfd..999f66fe82bf1dea4f7857035c84db1f0ba8479a 100644 (file)
@@ -1416,7 +1416,7 @@ SANE_Option_Descriptor *_kds_s2000w_option_descriptor_multifeed_response()
 {
        kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_multifeed_response");
 
-       char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
+       char** constraint = malloc(sizeof(SANE_String_Const*) * 3);
        if (constraint == NULL)
                return NULL;