summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-17 17:59:38 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-17 17:59:38 +0000
commit545d6e5a3022e2d1cd4546d7b8b88c08042d3bbb (patch)
treee209cd3b7cb22e75347f6a4ca92bb42bc2252be7
parent9e4626593f59ba4f5a678fc6d8d6e239cdff9c39 (diff)
downloadsamba-545d6e5a3022e2d1cd4546d7b8b88c08042d3bbb.tar.gz
samba-545d6e5a3022e2d1cd4546d7b8b88c08042d3bbb.tar.bz2
samba-545d6e5a3022e2d1cd4546d7b8b88c08042d3bbb.zip
make_unihdr() was setting the length to 1/2 the required value.
(This used to be commit 4c99a083b9555b1ccf16faf0d4c1fba8f52bbb6a)
-rw-r--r--source3/pipeutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/pipeutil.c b/source3/pipeutil.c
index de58d56a98..9a5e4deedd 100644
--- a/source3/pipeutil.c
+++ b/source3/pipeutil.c
@@ -173,8 +173,8 @@ int make_rpc_reply(char *inbuf, char *q, int data_len)
void make_uni_hdr(UNIHDR *hdr, int max_len, int len, uint16 terminate)
{
- hdr->uni_max_len = max_len;
- hdr->uni_str_len = len;
+ hdr->uni_max_len = 2 * max_len;
+ hdr->uni_str_len = 2 * len;
hdr->undoc = terminate;
}