From: Bastian Dehn Date: Mon, 29 Apr 2024 09:05:33 +0000 (+0200) Subject: change write output name with sprintf X-Git-Tag: v1.0.1^2~7 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=1e7d7589d568ce8552c83d510c49c5124f9ef8fe;p=sane-kds-s2000w-net.git change write output name with sprintf --- diff --git a/src/kds_s2000w_image_converter.c b/src/kds_s2000w_image_converter.c index 2c2abe3..375cca8 100644 --- a/src/kds_s2000w_image_converter.c +++ b/src/kds_s2000w_image_converter.c @@ -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);