diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c index 587a4cd9ed803ba8e9dcd3b1a7a579c2349b015d..7bf63943f7271f0df81cbf709c2c1571d43755cb 100644 --- a/sdcard/sdcard.c +++ b/sdcard/sdcard.c @@ -910,7 +910,7 @@ static int handle_setattr(struct fuse* fuse, struct fuse_handler* handler, /* XXX: incomplete implementation on purpose. * chmod/chown should NEVER be implemented.*/ - if ((req->valid & FATTR_SIZE) && truncate(path, req->size) < 0) { + if ((req->valid & FATTR_SIZE) && truncate64(path, req->size) < 0) { return -errno; }