From 02b601dd6c2f2de6a448bb2a54e9692d76c67ce4 Mon Sep 17 00:00:00 2001 From: Siim Meerits Date: Mon, 3 Aug 2020 00:08:38 +0300 Subject: [PATCH] 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. --- camlibs/smal/ultrapocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));