From 4b699984eb98c3546d6745f892a6bd892060a9df Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Tue, 30 Jul 2024 18:36:21 +0200 Subject: [PATCH] fix alloc right type option descriptor --- src/kds_s2000w_option_descriptors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.39.5