diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-14 17:01:43 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-14 17:01:43 +0000 |
commit | 6084046eede3652d7cabafb33227e940f00f92a8 (patch) | |
tree | f9c79437c761a732a9b9b5ebe3841f1491021446 /source3/pipeutil.c | |
parent | eadada905c8e46cb2e58c84c36bd2d98c1ea48cc (diff) | |
download | samba-6084046eede3652d7cabafb33227e940f00f92a8.tar.gz samba-6084046eede3652d7cabafb33227e940f00f92a8.tar.bz2 samba-6084046eede3652d7cabafb33227e940f00f92a8.zip |
credentials, query info reply.
(This used to be commit 9b095887df204393090d7da9a47508685ddd5163)
Diffstat (limited to 'source3/pipeutil.c')
-rw-r--r-- | source3/pipeutil.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/pipeutil.c b/source3/pipeutil.c index ce3f1535c4..b9201f3c95 100644 --- a/source3/pipeutil.c +++ b/source3/pipeutil.c @@ -180,18 +180,15 @@ void make_unistr(UNISTR *str, char *buf) PutUniCode((char *)(str->buffer), buf); } -void make_unistr2(UNISTR2 *str, char *buf, int len, char terminate) +void make_unistr2(UNISTR2 *str, char *buf, int len) { /* set up string lengths. add one if string is not null-terminated */ - str->uni_max_len = len + (terminate != 0 ? 1 : 0); + str->uni_max_len = len; str->undoc = 0; str->uni_str_len = len; /* store the string (null-terminated copy) */ PutUniCode((char *)str->buffer, buf); - - /* overwrite the last character: some strings are terminated with 4 not 0 */ - str->buffer[len] = (uint16)terminate; } void make_dom_rid2(DOM_RID2 *rid2, uint32 rid) |