aboutsummaryrefslogtreecommitdiff
path: root/src/Storage.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-29 17:54:12 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-29 17:54:12 +0100
commit5303ca008e760e4e4707c0816449fb83f278426b (patch)
treed42e4d2fdcfc55e3ff2ad7135dba7b9ba2078e1b /src/Storage.cpp
parent94152da2ef18a673a996e3d5cfb3780a8f5f7feb (diff)
Matrix: set filesize limit to int64 and remove 300mb limit for non-image files
Diffstat (limited to 'src/Storage.cpp')
-rw-r--r--src/Storage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Storage.cpp b/src/Storage.cpp
index 7554b73..c09e23b 100644
--- a/src/Storage.cpp
+++ b/src/Storage.cpp
@@ -191,10 +191,10 @@ namespace QuickMedia {
}
int file_get_size(const Path &path, int64_t *size) {
- struct stat file_stat;
+ struct stat64 file_stat;
memset(&file_stat, 0, sizeof(file_stat));
int ret;
- EINTR_RETRY(ret, stat(path.data.c_str(), &file_stat));
+ EINTR_RETRY(ret, stat64(path.data.c_str(), &file_stat));
if(ret == 0 && S_ISREG(file_stat.st_mode)) {
*size = file_stat.st_size;
return 0;