summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 6aee06cc00..185fe1c633 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2154,7 +2154,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
}
close_file(new_fsp,True);
} else {
- ret = vfs_allocate_file_space(fsp, size);
+ ret = vfs_allocate_file_space(fsp, allocation_size);
if (vfs_fstat(fsp,fd,&new_sbuf) != 0) {
DEBUG(3,("fstat of fnum %d failed (%s)\n",fsp->fnum, strerror(errno)));
ret = -1;