Update of /cvsroot/ufraw/ufraw In directory vz-cvs-3.sog:/tmp/cvs-serv9415 Modified Files: dcraw_indi.c Log Message: Fix compiler warning.
Index: dcraw_indi.c =================================================================== RCS file: /cvsroot/ufraw/ufraw/dcraw_indi.c,v retrieving revision 1.95 retrieving revision 1.96 diff -u -d -r1.95 -r1.96 --- dcraw_indi.c 1 Jan 2012 15:30:20 -0000 1.95 +++ dcraw_indi.c 2 Jan 2012 15:30:13 -0000 1.96 @@ -464,12 +464,13 @@ brow[2][col][c] = CLIP(t); } } - if (row > start_row + 1) /* Write buffer to image */ + /* Write buffer to image */ + if ((row > start_row + 1) || (row == height - 2)) memcpy(image[(row-2)*width+2], brow[0] + 2, (width - 4)*sizeof * image); - } - if (row == height - 2) { - memcpy(image[(row-2)*width+2], brow[0] + 2, (width - 4)*sizeof * image); - memcpy(image[(row-1)*width+2], brow[1] + 2, (width - 4)*sizeof * image); + if (row == height - 2) { + memcpy(image[(row-1)*width+2], brow[1] + 2, (width - 4)*sizeof * image); + break; + } } } free(ipalloc); ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ ufraw-cvs mailing list ufraw-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ufraw-cvs