From 96673548d8c3061d1d0cabda5e329b6874e542c7 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 26 Jan 2020 15:55:25 +0100 Subject: allow filenames shorter than 11 characters (AFL) --- camlibs/smal/ultrapocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/smal/ultrapocket.c b/camlibs/smal/ultrapocket.c index 3854f07c3..9212dae92 100644 --- a/camlibs/smal/ultrapocket.c +++ b/camlibs/smal/ultrapocket.c @@ -169,7 +169,7 @@ getpicture_logitech_pd(Camera *camera, GPContext *context, unsigned char **rd, c unsigned char *rawdata; int ptc,pc,id; - memcpy(command+3, filename, 11); /* the id of the image to transfer */ + strncpy(command+3, filename, 11); /* the id of the image to transfer */ CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10)); -- cgit v1.2.1