mirror of
https://github.com/fuse-friends/fuse-native
synced 2024-10-27 18:34:01 +00:00
fix truncate
This commit is contained in:
parent
b6ec61be75
commit
919eef1424
@ -904,13 +904,13 @@ static void bindings_dispatch (uv_async_t* handle, int status) {
|
||||
return;
|
||||
|
||||
case OP_TRUNCATE: {
|
||||
Local<Value> tmp[] = {NanNew<String>(b->path), NanNew<Number>(b->offset), callback};
|
||||
Local<Value> tmp[] = {NanNew<String>(b->path), NanNew<Number>(b->length), callback};
|
||||
bindings_call_op(b, b->ops_truncate, 3, tmp);
|
||||
}
|
||||
return;
|
||||
|
||||
case OP_FTRUNCATE: {
|
||||
Local<Value> tmp[] = {NanNew<String>(b->path), NanNew<Number>(b->info->fh), NanNew<Number>(b->offset), callback};
|
||||
Local<Value> tmp[] = {NanNew<String>(b->path), NanNew<Number>(b->info->fh), NanNew<Number>(b->length), callback};
|
||||
bindings_call_op(b, b->ops_ftruncate, 4, tmp);
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user