summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-03 21:37:45 +0000
committerJeremy Allison <jra@samba.org>2002-01-03 21:37:45 +0000
commit894e87cb32542414c51f5e70c89f68abf3d9a312 (patch)
tree8b6fc347f445d9ec3da974758e84fc3bad2eeac3 /source3
parent41dd759a50c53504efcd26771a265f34f20a1445 (diff)
downloadsamba-894e87cb32542414c51f5e70c89f68abf3d9a312.tar.gz
samba-894e87cb32542414c51f5e70c89f68abf3d9a312.tar.bz2
samba-894e87cb32542414c51f5e70c89f68abf3d9a312.zip
Fix the fix.... (sigh).
Jeremy. (This used to be commit 73cf9d04f6a35aa3b6bdb4e921de34e0021b5a2c)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 3f74070830..c7b4ab8ed1 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -589,7 +589,7 @@ ssize_t transfer_file_internal(int infd, int outfd, size_t n, ssize_t (*read_fn)
num_written = 0;
while (num_written < read_ret) {
- write_ret = (*write_fn)(outfd,buf + num_written, read_ret);
+ write_ret = (*write_fn)(outfd,buf + num_written, read_ret - num_written);
if (write_ret == -1) {
DEBUG(0,("transfer_file_internal: write failure. Error = %s\n", strerror(errno) ));