mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-24 14:18:06 +11:00
cfspack: fix bug where we would underallocate blocks
This commit is contained in:
parent
ede228374c
commit
a2d6cea72f
@ -26,7 +26,7 @@ int spitblock(char *fullpath, char *fn)
|
||||
if (fsize2 > 0) {
|
||||
blockcount += (fsize2 / BLKSIZE);
|
||||
}
|
||||
if (blockcount * BLKSIZE < fsize) {
|
||||
if (blockcount * BLKSIZE < fsize + HEADERSIZE) {
|
||||
blockcount++;
|
||||
}
|
||||
putchar('C');
|
||||
|
Loading…
Reference in New Issue
Block a user