projects
/
project
/
firmware-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed19b55
)
brcm63xx: imagetag: Fixed occaisonal wrong CRC in image due to using strncpy to copy...
author
Daniel Dickinson
<crazycshore@gmail.com>
Mon, 15 Nov 2010 04:08:09 +0000
(
04:08
+0000)
committer
Daniel Dickinson
<crazycshore@gmail.com>
Mon, 15 Nov 2010 04:08:09 +0000
(
04:08
+0000)
SVN-Revision: 24000
src/imagetag.c
patch
|
blob
|
history
diff --git
a/src/imagetag.c
b/src/imagetag.c
index 1fb45e9e9598673b6fab56745840ecdd77ae68fa..0ecbada2844c087b5cdee565c07e597fc67da594 100644
(file)
--- a/
src/imagetag.c
+++ b/
src/imagetag.c
@@
-32,9
+32,9
@@
union int2char {
char output[4];
};
-/*
This appears to be necessary due to alignment issues
*/
+/*
Convert uint32_t CRC to bigendian and copy it into a character array
*/
#define int2tag(tag, value) intchar.input = htonl(value); \
-
strn
cpy(tag, intchar.output, sizeof(union int2char))
+
mem
cpy(tag, intchar.output, sizeof(union int2char))
/* Kernel header */
struct kernelhdr {