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:
committed by
Marcus Meissner
parent
9c285ba314
commit
02b601dd6c
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user