+/*
+WARNING: DO NOT UNCRUSTIFY
+It will still compile after an uncrustify, but it will be *broken*
+See https://github.com/TTimo/GtkRadiant/issues/33
+*/
+
/*
Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
{
short v;
- fread( &v, sizeof(v), 1, fin );
+ if ( fread( &v, sizeof( v ), 1, fin ) != 1 ) {
+ return UNZ_EOF;
+ }
*pX = __LittleShort( v);
return UNZ_OK;
{
int v;
- fread( &v, sizeof(v), 1, fin );
+ if ( fread( &v, sizeof( v ), 1, fin ) != 1 ) {
+ return UNZ_EOF;
+ }
*pX = __LittleLong( v);
return UNZ_OK;