diff options
Diffstat (limited to 'camlibs/smal/ultrapocket.c')
-rw-r--r-- | camlibs/smal/ultrapocket.c | 2 |
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)); |