summaryrefslogtreecommitdiff
path: root/source3/libsmb/clifile.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-03-14 12:42:43 +0000
committerAndrew Tridgell <tridge@samba.org>2001-03-14 12:42:43 +0000
commit9ea70bd00349bc391809bec374700c6d9ce2952b (patch)
tree4a5aeb71abe62792cb9fa9c03feaa6f2401e6272 /source3/libsmb/clifile.c
parent376a44c81d360026eb0c2886e9a05dd2bfefd2cc (diff)
downloadsamba-9ea70bd00349bc391809bec374700c6d9ce2952b.tar.gz
samba-9ea70bd00349bc391809bec374700c6d9ce2952b.tar.bz2
samba-9ea70bd00349bc391809bec374700c6d9ce2952b.zip
simpler clistr interface which handles individual packets having
unicode bit set differently to capabilities (This used to be commit 34a0821e087810381996f5ff6cf3b4d7b9bb53a0)
Diffstat (limited to 'source3/libsmb/clifile.c')
-rw-r--r--source3/libsmb/clifile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 8742a576cf..79a168121b 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -198,7 +198,7 @@ int cli_nt_create(struct cli_state *cli, char *fname, uint32 DesiredAccess)
p = smb_buf(cli->outbuf);
/* this alignment and termination is critical for netapp filers. Don't change */
- p += clistr_align(cli, PTR_DIFF(p, cli->outbuf));
+ p += clistr_align(cli->outbuf, p);
len = clistr_push(cli, p, fname, -1, STR_CONVERT);
p += len;
SSVAL(cli->outbuf,smb_ntcreate_NameLength, len);