From: Fridrich S. <str...@us...> - 2008-07-10 22:21:19
|
Update of /cvsroot/libwpg/perfectspot/src/odg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9853 Modified Files: femtozip.cxx Log Message: silence a warning Index: femtozip.cxx =================================================================== RCS file: /cvsroot/libwpg/perfectspot/src/odg/femtozip.cxx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- femtozip.cxx 17 May 2007 14:35:13 -0000 1.1 +++ femtozip.cxx 10 Jul 2008 22:21:15 -0000 1.2 @@ -373,7 +373,8 @@ buffer[19] = (centralDirPos>>24) & 0xff; buffer[20] = 0x00; buffer[21] = 0x00; - fwrite(buffer, 1, 22, fhandle); + if (fwrite(buffer, 1, 22, fhandle) != 30) + errorCode = FemtoZip::ErrorWriteData; // that's all, we're done ! fclose(fhandle); |