summaryrefslogtreecommitdiff
path: root/source3/pipeutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/pipeutil.c')
-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;
}