]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix alloc right type option descriptor
authorBastian Dehn <hhaalo@arcor.de>
Tue, 30 Jul 2024 16:36:21 +0000 (18:36 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 30 Jul 2024 16:36:21 +0000 (18:36 +0200)
src/kds_s2000w_option_descriptors.c

index ae238910fa0fc74cc150554f9558ca4fe5abaac9..678592b2987c08addc07fdcf1dac602d374fcbc0 100644 (file)
@@ -387,7 +387,7 @@ SANE_Option_Descriptor _kds_s2000w_option_descriptor_background_smoothing_mode()
 {
        debug_printf(ALL, "kds_s2000w_option_descriptor_background_smoothing_mode");
 
-       constraint_background_smoothing_mode = malloc(sizeof(char*) * 4);
+       constraint_background_smoothing_mode = malloc(sizeof(SANE_String_Const*) * 4);
        constraint_background_smoothing_mode[0] = "None";
        constraint_background_smoothing_mode[1] = "AutomaticAdvanced";
        constraint_background_smoothing_mode[2] = "Automatic";