]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change write output name with sprintf
authorBastian Dehn <hhaalo@arcor.de>
Mon, 29 Apr 2024 09:05:33 +0000 (11:05 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 29 Apr 2024 09:05:33 +0000 (11:05 +0200)
src/kds_s2000w_image_converter.c

index 2c2abe3e9ae7e206c8f6be74cdda44c5e45362ea..375cca81299ad7ff953613f22f95fa754a6f4843 100644 (file)
@@ -48,7 +48,7 @@ void kds_s2000w_convert_to_pnm_with_depth(blobdata* in,
        DestroyExceptionInfo(exception);
        exception = AcquireExceptionInfo();
        image_info = CloneImageInfo(NULL);
-       memcpy(image_info->filename, "streamout.pnm", 14);
+       sprintf(image_info->filename, "streamout.pnm");
 
        if (depth > -1)
                SetImageDepth(input_image, depth);