aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuan, Xin <guanx.bac@gmail.com>2014-09-13 13:15:26 +0200
committerMohamad Ayyash <mkayyash@google.com>2015-02-23 12:36:47 -0800
commit1eda7b88329333e6c3eccce26982dc7058bc9392 (patch)
treeebf670ba57e9ef443f72b87411a7e0278191e538
parent1ec844d88336cd5a1cd30e247669f3f495601a2e (diff)
downloadsquashfs-tools-1eda7b88329333e6c3eccce26982dc7058bc9392.tar.gz
Fix 2GB-limit of the is_fragment(...) function.
Applies to squashfs-tools 4.3. Reported-by: Bruno Wolff III <bruno@wolff.to> Signed-off-by: Guan, Xin <guanx.bac@gmail.com> Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
-rw-r--r--squashfs-tools/mksquashfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
index f1fcff1..d221c35 100644
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -2029,7 +2029,7 @@ struct file_info *duplicate(long long file_size, long long bytes,
inline int is_fragment(struct inode_info *inode)
{
- int file_size = inode->buf.st_size;
+ off_t file_size = inode->buf.st_size;
/*
* If this block is to be compressed differently to the