forked from len0rd/rockbox
store the 'add' checksum big-endian
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5658 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
950677dd1a
commit
14dd055a86
1 changed files with 1 additions and 2 deletions
|
|
@ -237,8 +237,7 @@ int main (int argc, char** argv)
|
||||||
{
|
{
|
||||||
case add:
|
case add:
|
||||||
{
|
{
|
||||||
unsigned long *headp = (unsigned long *)header;
|
int2be(crc32, header); /* checksum, big-endian */
|
||||||
headp[0] = crc32; /* checksum */
|
|
||||||
memcpy(&header[4], irivermodel, 4); /* 4 bytes model name */
|
memcpy(&header[4], irivermodel, 4); /* 4 bytes model name */
|
||||||
memcpy(outbuf, inbuf, length); /* the input buffer to output*/
|
memcpy(outbuf, inbuf, length); /* the input buffer to output*/
|
||||||
headerlen = 8;
|
headerlen = 8;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue