From: Bastian Dehn Date: Sun, 25 Feb 2024 20:11:28 +0000 (+0100) Subject: fix allocate ptr ptr X-Git-Tag: v1.0.0^2~179 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=6badd06f2918bbb5bf96940250e16a85fa2beefe;p=sane-kds-s2000w-net.git fix allocate ptr ptr --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index edbeb43..bc06488 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -54,7 +54,7 @@ SANE_Status _sane_kds_s2000w_net_get_devices(SANE_Device*** device_list, if (local_only) return SANE_STATUS_NO_MEM; - SANE_Device** own_device_list = malloc(sizeof(SANE_Device**)); + SANE_Device** own_device_list = malloc(sizeof(SANE_Device*)); device_info = malloc(sizeof(SANE_Device)); device_info->name = "kds_s2000w_net"; device_info->vendor = "Kodak";