diff --git a/camlibs/smal/ultrapocket.c b/camlibs/smal/ultrapocket.c index 7f0addfaa..8f3ca0670 100644 --- a/camlibs/smal/ultrapocket.c +++ b/camlibs/smal/ultrapocket.c @@ -173,7 +173,7 @@ getpicture_logitech_pd(Camera *camera, GPContext *context, unsigned char **rd, c unsigned char *rawdata; int ptc,pc,id; - strncpy(command+3, filename, 11); /* the id of the image to transfer */ + strncpy((char*)(command+3), filename, 11); /* the id of the image to transfer */ CHECK_RESULT(ultrapocket_command(port, 1, command, 0x10));