]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - zlib/inflate.c
Remove include statement that causes trouble (fix #151).
[proxmark3-svn] / zlib / inflate.c
index d2c666b0345244b70281de85eac7b0733909a66e..091b9a22fe87d53992535cf57fa2a2099c4fb61b 100644 (file)
  * The history for versions after 1.2.0 are in ChangeLog in zlib distribution.
  */
 
+//-----------------------------------------------------------------------------
+// This version of zlib is modified for use within the Proxmark3 project. 
+// Files from the original distribution which are not required for this
+// purpose are not included. All modifications can easily be found
+// by searching for #ifdef ZLIB_PM3_TUNED and #ifndef ZLIB_PM3_TUNED.
+//-----------------------------------------------------------------------------
+
+
 #include "zutil.h"
 #include "inftrees.h"
 #include "inflate.h"
@@ -847,8 +856,8 @@ int flush;
                 break;
             case 1:                             /* fixed block */
 #ifdef ZLIB_PM3_TUNED
-                               Dbprintf("FATAL error. Compressed FPGA files with fixed code blocks are not supported!");
-                               for(;;);
+                strm->msg = (char *)"fixed block coding not supported";
+                               state->mode = BAD;
 #else                          
                 fixedtables(state);
                 Tracev((stderr, "inflate:     fixed codes block%s\n",
Impressum, Datenschutz