revert changeset 15081 seems to break Alice box devices

SVN-Revision: 15140
This commit is contained in:
Florian Fainelli 2009-04-07 15:14:40 +00:00
parent 5d5c8300b1
commit 47387c945a

View File

@ -191,7 +191,7 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin,
fseek(binfile, rootfsoff - fwaddr, SEEK_SET); fseek(binfile, rootfsoff - fwaddr, SEEK_SET);
while (rootfsfile && !feof(rootfsfile) && !ferror(rootfsfile)) { while (rootfsfile && !feof(rootfsfile) && !ferror(rootfsfile)) {
read = fread(readbuf, sizeof(uint8_t), sizeof(readbuf), rootfsfile); read = fread(readbuf, sizeof(uint8_t), sizeof(readbuf), rootfsfile);
crc = crc32(crc, readbuf, read); //crc = crc32(crc, readbuf, read);
fwrite(readbuf, sizeof(uint8_t), read, binfile); fwrite(readbuf, sizeof(uint8_t), read, binfile);
} }