From: <mar...@us...> - 2013-06-28 06:33:31
|
Revision: 14462 http://sourceforge.net/p/gphoto/code/14462 Author: marcusmeissner Date: 2013-06-28 06:33:28 +0000 (Fri, 28 Jun 2013) Log Message: ----------- use correct sizeof() (Coverity) Modified Paths: -------------- trunk/libgphoto2/camlibs/jd11/serial.c Modified: trunk/libgphoto2/camlibs/jd11/serial.c =================================================================== --- trunk/libgphoto2/camlibs/jd11/serial.c 2013-06-28 06:28:17 UTC (rev 14461) +++ trunk/libgphoto2/camlibs/jd11/serial.c 2013-06-28 06:33:28 UTC (rev 14462) @@ -459,7 +459,7 @@ unsigned int id; jd11_select_image(port,nr); - *imagebufs = (unsigned char**)malloc(3*sizeof(char**)); + *imagebufs = (unsigned char**)malloc(3*sizeof(unsigned char*)); for (picnum=0;picnum<3;picnum++) { curread=0; sizes[picnum] = jd11_imgsize(port); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |