summaryrefslogtreecommitdiffstats
path: root/source3/rpc_parse/parse_misc.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-06-09 02:26:26 +0000
committerJeremy Allison <jra@samba.org>1998-06-09 02:26:26 +0000
commite85295d9241bcdad3723898ab8ad88d8f11d5f28 (patch)
treeab70331ce6bf518879e9a4128e879f5508b0c247 /source3/rpc_parse/parse_misc.c
parent75e909f27db1e1ff69897e477a2c4704faf9a2fb (diff)
downloadsamba-e85295d9241bcdad3723898ab8ad88d8f11d5f28.tar.gz
samba-e85295d9241bcdad3723898ab8ad88d8f11d5f28.tar.xz
samba-e85295d9241bcdad3723898ab8ad88d8f11d5f28.zip
loadparm.c: Removed 'domain other sids' parameter.
lib/rpc/include/rpc_lsa.h: Changed #defines for RPC calls - moved some, made LSA_LOOKUPNAMES correct. lib/rpc/include/rpc_misc.h: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx. Changed bitmasks for uid to rid to be 1 bit. lib/rpc/parse/parse_misc.c: Changed make_unistr2 to put length as given, max length as one more. lib/rpc/server/srv_netlog.c: Removed 'domain other sids' parameter. lib/rpc/server/srv_samr.c: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx. lib/rpc/server/srv_util.c: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx. Jeremy. (This used to be commit 34c91840a3d8c252715dc2f749b7a3b171a5b74f)
Diffstat (limited to 'source3/rpc_parse/parse_misc.c')
-rw-r--r--source3/rpc_parse/parse_misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index 35ca6c9553c..4937751b898 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/rpc_parse/parse_misc.c
@@ -423,7 +423,9 @@ 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+1;
str->undoc = 0;
- str->uni_str_len = len+1;
+
+/* JRATEST - I believe this should be len, not len-1. JRA.*/
+ str->uni_str_len = len;
/* store the string (null-terminated 8 bit chars into 16 bit chars) */
struni2(str->buffer, buf);