Skip to content

Commit

Permalink
Import from dmg2img-1.6.4.tar.gz
Browse files Browse the repository at this point in the history
1.6.4  25 April 2012
  * Compilation bugfix (Linux)

http://vu1tur.eu.org/tools/dmg2img-1.6.4.tar.gz
bytes   24335
mtime   Wed, 25 Apr 2012 08:03:40 +0000
md5     3861da66bf0d2f7407aeeec93f9cfc5e
sha1    81def13b6761ae2105763313a7bb9cb39a0f9679
sha256  cbbb8366196eea4609b35807a72b39b9edae7e518748a42c6dc6b69ee19d99ed

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
  • Loading branch information
Lekensteyn committed Jan 5, 2015
1 parent 9de2adc commit 3c44bc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README
Expand Up @@ -106,4 +106,8 @@ CHANGELOG:
* Added support for a rare case scenario of koly block being at the
the beginning of the image (thanks to Friik)

1.6.4 25 April 2012
* Compilation bugfix (Linux)


http://vu1tur.eu.org/dmg2img
4 changes: 2 additions & 2 deletions dmg2img.c
Expand Up @@ -16,7 +16,7 @@
*/

#define _FILE_OFFSET_BITS 64
#define VERSION "dmg2img v1.6.3 (c) vu1tur (to@vu1tur.eu.org)"
#define VERSION "dmg2img v1.6.4 (c) vu1tur (to@vu1tur.eu.org)"
#define USAGE "\
Usage: dmg2img [-l] [-p N] [-s] [-v] [-V] [-d] <input.dmg> [<output.img>]\n\
or dmg2img [-l] [-p N] [-s] [-v] [-V] [-d] -i <input.dmg> -o <output.img>\n\n\
Expand Down Expand Up @@ -290,7 +290,7 @@ int main(int argc, char *argv[])
partname_begin = strstr(data_begin, name_key);
partname_begin = strstr(partname_begin, name_begin) + strlen(name_begin);
partname_end = strstr(partname_begin, name_end);
ZeroMemory(partname, 255);
memset(partname, 0, 255);
memcpy(partname, partname_begin, partname_end - partname_begin);
if (verbose >= 2) {
printf("partition %d: begin=%d, size=%d, decoded=%d\n", i, (int)(data_begin - blkx), data_size, tmplen);
Expand Down

0 comments on commit 3c44bc7

Please sign in to comment.