summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_parse/parse_misc.c')
-rw-r--r--source3/rpc_parse/parse_misc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index 4937751b89..35ca6c9553 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/rpc_parse/parse_misc.c
@@ -423,9 +423,7 @@ 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;
-
-/* JRATEST - I believe this should be len, not len-1. JRA.*/
- str->uni_str_len = len;
+ str->uni_str_len = len+1;
/* store the string (null-terminated 8 bit chars into 16 bit chars) */
struni2(str->buffer, buf);