diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2014-04-11 20:19:32 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2014-04-11 20:19:32 +0000 |
commit | 669d3bfc2fc7b1b8f8fbe4e97e1b51a37068b3ed (patch) | |
tree | 0a10419c81ce373256950ed05ad1298e6211289b /camlibs/smal/ultrapocket.c | |
parent | 292d2f69aa9846a2d24dafb0263828e8806f34c7 (diff) | |
download | libgphoto2-669d3bfc2fc7b1b8f8fbe4e97e1b51a37068b3ed.tar.gz |
From: "Daniel P. Berrange" <dan@berrange.com>
Many callers of strcpy/scanf/strcmp functions are passing a
'unsigned char *' rather than the 'char *' they expect.
Add explicit casts to silence the compiler.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14901 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/smal/ultrapocket.c')
-rw-r--r-- | camlibs/smal/ultrapocket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camlibs/smal/ultrapocket.c b/camlibs/smal/ultrapocket.c index 445c2271c..368edde2c 100644 --- a/camlibs/smal/ultrapocket.c +++ b/camlibs/smal/ultrapocket.c @@ -251,7 +251,7 @@ ultrapocket_getrawpicture(Camera *camera, GPContext *context, return (GP_ERROR_NO_MEMORY); /* Set header */ - strcpy(outdata, ppmheader); + strcpy((char *)outdata, ppmheader); /* Expand the Bayer tiles */ result = gp_bayer_expand((rawdata+imgstart), width + 4, height, @@ -340,7 +340,7 @@ ultrapocket_getpicture(Camera *camera, GPContext *context, unsigned char **pdata } /* Set header */ - strcpy(outdata, ppmheader); + strcpy((char *)outdata, ppmheader); /* Decode and interpolate the Bayer tiles */ result = gp_bayer_decode((rawdata+imgstart), width+4, height, |