summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.c
diff options
context:
space:
mode:
authorcaozhiyuan <cao.zhiyuan@zte.com.cn>2015-05-19 11:21:00 +0200
committerThe Android Automerger <android-build@google.com>2015-06-26 22:54:17 +0200
commit9154748cc5398d5606765d67409c3cfcdb8b7ad6 (patch)
tree52a68ca0172b97d75a6fbf248ffac01e83402330 /applypatch/applypatch.c
parentAllow sideloading without authentication. (diff)
downloadandroid_bootable_recovery-9154748cc5398d5606765d67409c3cfcdb8b7ad6.tar
android_bootable_recovery-9154748cc5398d5606765d67409c3cfcdb8b7ad6.tar.gz
android_bootable_recovery-9154748cc5398d5606765d67409c3cfcdb8b7ad6.tar.bz2
android_bootable_recovery-9154748cc5398d5606765d67409c3cfcdb8b7ad6.tar.lz
android_bootable_recovery-9154748cc5398d5606765d67409c3cfcdb8b7ad6.tar.xz
android_bootable_recovery-9154748cc5398d5606765d67409c3cfcdb8b7ad6.tar.zst
android_bootable_recovery-9154748cc5398d5606765d67409c3cfcdb8b7ad6.zip
Diffstat (limited to '')
-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) {