]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix allocate ptr ptr
authorBastian Dehn <hhaalo@arcor.de>
Sun, 25 Feb 2024 20:11:28 +0000 (21:11 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 25 Feb 2024 20:11:28 +0000 (21:11 +0100)
src/kds_s2000w_net.c

index edbeb438d727c5da0b83c25b4ba6b5293b7df73e..bc0648868535e7fb57c9db7d6dbe5e075fdadf5e 100644 (file)
@@ -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";