diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2007-03-15 13:04:38 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2007-03-15 13:04:38 +0000 |
commit | 84ff46a270df3e9094fa94232e6e3dfb10210671 (patch) | |
tree | b68ece360b3879622a5b0c6b3124fcf3b7af7e41 | |
parent | 20d8e8d0dea7c842dabe8ea122b649b579bdc7f0 (diff) | |
download | rockbox-84ff46a270df3e9094fa94232e6e3dfb10210671.tar.gz rockbox-84ff46a270df3e9094fa94232e6e3dfb10210671.zip |
The mi4 CRC should start at 0x200, not 0x1c.
Also fix copy-paste error in comment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12779 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | tools/mi4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mi4.c b/tools/mi4.c index b9f7e25393..a76308cc8f 100644 --- a/tools/mi4.c +++ b/tools/mi4.c | |||
@@ -152,12 +152,12 @@ int mi4_encode(char *iname, char *oname, int version, int magic, | |||
152 | 152 | ||
153 | int2le(0xaa55aa55, &outbuf[0x200+length]); /* More Magic */ | 153 | int2le(0xaa55aa55, &outbuf[0x200+length]); /* More Magic */ |
154 | 154 | ||
155 | strncpy((char *)outbuf+0x1f8, type, 4); /* type of binary - RBBL, RBOS, ... */ | 155 | strncpy((char *)outbuf+0x1f8, type, 4); /* type of binary (RBBL, RBOS) */ |
156 | strncpy((char *)outbuf+0x1fc, model, 4); /* type of binary - RBBL, RBOS, ... */ | 156 | strncpy((char *)outbuf+0x1fc, model, 4); /* 4 character model id */ |
157 | 157 | ||
158 | /* Calculate CRC32 checksum */ | 158 | /* Calculate CRC32 checksum */ |
159 | chksum_crc32gentab (); | 159 | chksum_crc32gentab (); |
160 | crc = chksum_crc32 (outbuf+28,mi4length-28); | 160 | crc = chksum_crc32 (outbuf+0x200,mi4length-0x200); |
161 | 161 | ||
162 | strncpy((char *)outbuf, "PPOS", 4); /* Magic */ | 162 | strncpy((char *)outbuf, "PPOS", 4); /* Magic */ |
163 | int2le(version, &outbuf[0x04]); /* .mi4 version */ | 163 | int2le(version, &outbuf[0x04]); /* .mi4 version */ |