patch-gimgextract_c 602 B

12345678910111213141516
  1. $OpenBSD: patch-gimgextract_c,v 1.1.1.1 2013/05/13 06:57:01 jasper Exp $
  2. Fix format strings for off_t and int.
  3. --- gimgextract.c.orig Sun Mar 10 22:25:18 2013
  4. +++ gimgextract.c Sun Mar 10 22:26:21 2013
  5. @@ -70,7 +70,7 @@ int main (int argc, char *argv[])
  6. sf_offset = read_2byte_at(infp, offset + 0x20) * block_size;
  7. sf_size = read_4byte_at(infp, offset + 0xc);
  8. if (sf_offset == 0 || sf_size == 0)
  9. - errexit("subfile %s has 0 offset or size: 0x%lx 0x%lx\n",
  10. + errexit("subfile %s has 0 offset or size: 0x%llx 0x%d\n",
  11. sf_name, sf_offset, sf_size);
  12. outfp = fopen(sf_name, "wb");