diff options
| -rw-r--r-- | tools/scramble.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/scramble.c b/tools/scramble.c index aecb239..d94dabf 100644 --- a/tools/scramble.c +++ b/tools/scramble.c @@ -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; |