diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-26 20:45:09 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-29 21:38:06 +0100 |
commit | 37da26a06ee0a51f2e6c7b93e2fefc2342613c84 (patch) | |
tree | 1c4667731ddc9756d7dfb2adc2622c3cce0f26c4 /source3/include | |
parent | 89caa0e86be9e20702a24fea4f94a11e6e02cc93 (diff) | |
download | samba-37da26a06ee0a51f2e6c7b93e2fefc2342613c84.tar.gz samba-37da26a06ee0a51f2e6c7b93e2fefc2342613c84.tar.bz2 samba-37da26a06ee0a51f2e6c7b93e2fefc2342613c84.zip |
Add the strlen to push to smb_bytes_push_str, return the converted size
The pushed strlen replaces the STR_TERMINATE flag which I personally always
find very confusing.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index e2aeb197d0..e00d644852 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2501,7 +2501,8 @@ int cli_nt_create_full(struct cli_state *cli, const char *fname, uint32 CreateDisposition, uint32 CreateOptions, uint8 SecuityFlags); int cli_nt_create(struct cli_state *cli, const char *fname, uint32 DesiredAccess); -uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str); +uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str, + size_t strlen, size_t *pconverted_size); struct async_req *cli_open_send(TALLOC_CTX *mem_ctx, struct event_context *ev, struct cli_state *cli, const char *fname, int flags, int share_mode); |