From: Bastian Dehn Date: Tue, 30 Jul 2024 16:36:21 +0000 (+0200) Subject: fix alloc right type option descriptor X-Git-Tag: v1.0.4^2~10 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=4b699984eb98c3546d6745f892a6bd892060a9df;p=sane-kds-s2000w-net.git fix alloc right type option descriptor --- diff --git a/src/kds_s2000w_option_descriptors.c b/src/kds_s2000w_option_descriptors.c index ae23891..678592b 100644 --- a/src/kds_s2000w_option_descriptors.c +++ b/src/kds_s2000w_option_descriptors.c @@ -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";