summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.c
diff options
context:
space:
mode:
authorcaozhiyuan <cao.zhiyuan@zte.com.cn>2015-05-19 11:21:00 +0200
committerTao Bao <tbao@google.com>2015-06-26 20:17:02 +0200
commitcb9450e11337700907a7a5ec290902196c74fa9b (patch)
tree52a68ca0172b97d75a6fbf248ffac01e83402330 /applypatch/applypatch.c
parentAllow sideloading without authentication. (diff)
downloadandroid_bootable_recovery-cb9450e11337700907a7a5ec290902196c74fa9b.tar
android_bootable_recovery-cb9450e11337700907a7a5ec290902196c74fa9b.tar.gz
android_bootable_recovery-cb9450e11337700907a7a5ec290902196c74fa9b.tar.bz2
android_bootable_recovery-cb9450e11337700907a7a5ec290902196c74fa9b.tar.lz
android_bootable_recovery-cb9450e11337700907a7a5ec290902196c74fa9b.tar.xz
android_bootable_recovery-cb9450e11337700907a7a5ec290902196c74fa9b.tar.zst
android_bootable_recovery-cb9450e11337700907a7a5ec290902196c74fa9b.zip
Diffstat (limited to 'applypatch/applypatch.c')
-rw-r--r--applypatch/applypatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/applypatch.c b/applypatch/applypatch.c
index 6f02a38ee..2358d4292 100644
--- a/applypatch/applypatch.c
+++ b/applypatch/applypatch.c
@@ -662,7 +662,7 @@ size_t FreeSpaceForFile(const char* filename) {
printf("failed to statfs %s: %s\n", filename, strerror(errno));
return -1;
}
- return sf.f_bsize * sf.f_bfree;
+ return sf.f_bsize * sf.f_bavail;
}
int CacheSizeCheck(size_t bytes) {