updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / libecwj2 / libecwj2-3.3-3245b.patch
blob7f01dc31779cba23025286e49f13e2feecc8b9d8
1 --- Source/C/tinyxml/tinyxml.cpp 2010-10-29 16:12:42.000000000 +0100
2 +++ Source/C/tinyxml/tinyxml.cpp 2010-10-29 16:13:54.000000000 +0100
3 @@ -1020,6 +1020,8 @@
5 if ( fread( buf, length, 1, file ) != 1 ) {
6 //if ( fread( buf, 1, length, file ) != (size_t)length ) {
7 + delete [] buf;
8 + buf = 0;
9 SetError( TIXML_ERROR_OPENING_FILE, 0, 0, TIXML_ENCODING_UNKNOWN );
10 fclose( file );
11 return false;