summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-20 01:47:31 +0000
committerJeremy Allison <jra@samba.org>2002-03-20 01:47:31 +0000
commita1249aca906e9624edada1b4e9c654b568897dce (patch)
treeab0c1db602bb2a1bba0b37ee54b67f1ffba5aa47 /source3/libsmb
parent6586062d1a803952d671f145de9373b08721dbb9 (diff)
downloadsamba-a1249aca906e9624edada1b4e9c654b568897dce.tar.gz
samba-a1249aca906e9624edada1b4e9c654b568897dce.tar.bz2
samba-a1249aca906e9624edada1b4e9c654b568897dce.zip
Correctly increment offset in cli_smbwrite.
Jeremy. (This used to be commit 5b04b5f1df3ee509e7314064966be09e2202b0ef)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clireadwrite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index 402de726e8..0a9569fc69 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -366,6 +366,8 @@ ssize_t cli_smbwrite(struct cli_state *cli,
size1 -= size;
total += size;
+ offset += size;
+
} while (size1);
return total;