projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a68de7
)
fix rounding error
author
Mike Baker
<mbm@openwrt.org>
Wed, 25 May 2005 18:31:13 +0000
(18:31 +0000)
committer
Mike Baker
<mbm@openwrt.org>
Wed, 25 May 2005 18:31:13 +0000
(18:31 +0000)
SVN-Revision: 1058
openwrt/package/openwrt/jffs2root.c
patch
|
blob
|
history
diff --git
a/openwrt/package/openwrt/jffs2root.c
b/openwrt/package/openwrt/jffs2root.c
index aa718da5930aabb3c9270f0b9474bc43e358b33a..36b928ff46e9a952662696a3b2a2f385a5343918 100644
(file)
--- a/
openwrt/package/openwrt/jffs2root.c
+++ b/
openwrt/package/openwrt/jffs2root.c
@@
-99,7
+99,7
@@
int main(int argc, char **argv)
printf("Partition already moved outside trx\n");
} else {
init_crc32();
- ptr->offsets[2] +=
mtdInfo.erasesize
;
+ ptr->offsets[2] +=
(mtdInfo.erasesize - 1)
;
ptr->offsets[2] &= ~(mtdInfo.erasesize - 1);
ptr->len = ptr->offsets[2];
ptr->crc32 = crc32buf((void *) &(ptr->flag_version), ptr->len - offsetof(struct trx_header, flag_version));