1
0
Fork 0
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:
Daniel Stenberg 2005-01-24 23:14:47 +00:00
parent 950677dd1a
commit 14dd055a86

View file

@ -237,8 +237,7 @@ int main (int argc, char** argv)
{
case add:
{
unsigned long *headp = (unsigned long *)header;
headp[0] = crc32; /* checksum */
int2be(crc32, header); /* checksum, big-endian */
memcpy(&header[4], irivermodel, 4); /* 4 bytes model name */
memcpy(outbuf, inbuf, length); /* the input buffer to output*/
headerlen = 8;