summaryrefslogtreecommitdiff
path: root/source/pipeutil.c
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
commit4c99a083b9555b1ccf16faf0d4c1fba8f52bbb6a (patch)
tree3436e443d1e7391bcafa85f237045edc3ea2a8c4 /source/pipeutil.c
parent7993e17c9a1edddae6407d3f12790c461def705a (diff)
downloadsamba-4c99a083b9555b1ccf16faf0d4c1fba8f52bbb6a.tar.gz
make_unihdr() was setting the length to 1/2 the required value.
Diffstat (limited to 'source/pipeutil.c')
-rw-r--r--source/pipeutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pipeutil.c b/source/pipeutil.c
index de58d56a98c..9a5e4deedd8 100644
--- a/source/pipeutil.c
+++ b/source/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;
}