]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
make_unihdr() was setting the length to 1/2 the required value.
authorLuke Leighton <lkcl@samba.org>
Fri, 17 Oct 1997 17:59:38 +0000 (17:59 +0000)
committerLuke Leighton <lkcl@samba.org>
Fri, 17 Oct 1997 17:59:38 +0000 (17:59 +0000)
source/pipeutil.c

index de58d56a98cae1e5c6afc5a881f90a532c98b791..9a5e4deedd8b362d8d24468a84604f1241acbe0f 100644 (file)
@@ -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;
 }