diff src/dmzlib.c @ 2384:36edd316184a

Fix some format strings to use proper PRI*_SIZE_T where necessary.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 09 Jan 2020 15:20:23 +0200
parents 749f8f808531
children 69a5af2eb1ea
line wrap: on
line diff
--- a/src/dmzlib.c	Thu Jan 09 14:55:41 2020 +0200
+++ b/src/dmzlib.c	Thu Jan 09 15:20:23 2020 +0200
@@ -497,7 +497,7 @@
 static int dmZLibParseUncompressedBlock(DMZLibContext * ctx)
 {
     Uint8 header[4];
-    size_t len, nlen, k, ret;
+    size_t len, nlen, k;
 
     // "Any bits of input up to the next byte boundary are ignored."
     if (ctx->numBits & 7)
@@ -523,12 +523,15 @@
     if (nlen != (len ^ 0xffff))
     {
         return dmErrorDBG(DMERR_DATA_ERROR,
-            "Compressed data corrupt %04x :: %04x [%04x].\n",
+            "Compressed data corrupt %04" DM_PRIx_SIZE_T
+            " :: %04" DM_PRIx_SIZE_T " [%04" DM_PRIx_SIZE_T "].\n",
             nlen, len, len ^ 0xffff);
     }
 
     if (len > 0)
     {
+        int ret;
+
         if (ctx->inBuffer + len > ctx->inBufferEnd)
         {
             return dmErrorDBG(DMERR_BOUNDS,