summaryrefslogtreecommitdiff
path: root/camlibs/minolta
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2014-04-11 20:19:32 +0000
committerMarcus Meissner <marcus@jet.franken.de>2014-04-11 20:19:32 +0000
commit669d3bfc2fc7b1b8f8fbe4e97e1b51a37068b3ed (patch)
tree0a10419c81ce373256950ed05ad1298e6211289b /camlibs/minolta
parent292d2f69aa9846a2d24dafb0263828e8806f34c7 (diff)
downloadlibgphoto2-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/minolta')
-rw-r--r--camlibs/minolta/dimagev/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/minolta/dimagev/util.c b/camlibs/minolta/dimagev/util.c
index 126f7ca59..e95b2cc8c 100644
--- a/camlibs/minolta/dimagev/util.c
+++ b/camlibs/minolta/dimagev/util.c
@@ -82,7 +82,7 @@ unsigned char *dimagev_ycbcr_to_ppm(unsigned char *ycbcr) {
rgb_current = &(rgb_data[13]);
/* This is the header for a PPM "rawbits" bitmap of size 80x60. */
- strncpy(rgb_data, "P6\n80 60\n255\n", 13);
+ strncpy((char *)rgb_data, "P6\n80 60\n255\n", 13);
for ( count = 0 ; count < 9600 ; count+=4, ycrcb_current+=4, rgb_current+=6 ) {
magic_b = ( ( ycrcb_current[2] > (unsigned char) 128 ? 128 : ycrcb_current[2] ) - 128 ) * ( 2 - ( 2 * CR_COEFF ) ) + ycrcb_current[0];