jasper 045aa9fdfd import gimgtools-0.02
gimgtools is a set of command-line tools to examine and manipulate
Garmin IMG (the map format) files. The included tools are:

* gimgunlock: Unlock a locked map so that it can be used on ALL devices.
* gimgxor: Unscramble XOR'd map files.
* gimginfo: Print information of the map.
* gimgextract: Extract the IMG sections.
* gimgch: Hexdump and compare section header of two or more IMGs.

ok sebastia@
2013-05-13 06:57:01 +00:00

16 lines
534 B
Plaintext

$OpenBSD: patch-gimgch_c,v 1.1.1.1 2013/05/13 06:57:01 jasper Exp $
Fix format string for off_t.
--- gimgch.c.orig Sun Mar 10 22:24:39 2013
+++ gimgch.c Sun Mar 10 22:24:46 2013
@@ -47,7 +47,7 @@ static void display_headers (int line_columns)
emptyid[strlen(headers[0]->id)] = '\0';
for (i = 0; i < header_num; i ++) {
- printf("%s %8x=foff %8x=flen %4x=hoff %4x=hlen %s %s\n",
+ printf("%s %8llx=foff %8x=flen %4x=hoff %4x=hlen %s %s\n",
headers[i]->id,
headers[i]->subfile_offset,
headers[i]->subfile_size,