summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2020-01-26 15:55:25 +0100
committerMarcus Meissner <marcus@jet.franken.de>2020-01-26 15:55:25 +0100
commit96673548d8c3061d1d0cabda5e329b6874e542c7 (patch)
treed03ebffcf699eae6ba4b837cc49158f47962e9a5
parentf86cce3d2ba40d0319312d67587264a63039795f (diff)
downloadlibgphoto2-96673548d8c3061d1d0cabda5e329b6874e542c7.tar.gz
allow filenames shorter than 11 characters (AFL)
-rw-r--r--camlibs/smal/ultrapocket.c2
1 files changed, 1 insertions, 1 deletions
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));