Fix smal camlib compilation warnings.

Adds pointer cast from 'unsigned char*' to 'char*' to suppress signed-unsigned conversion warning. This does not change code behavior.
This commit is contained in:
Siim Meerits
2020-08-03 00:08:38 +03:00
committed by Marcus Meissner
parent 9c285ba314
commit 02b601dd6c

View File

@@ -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));