summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse/parse_misc.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-06-09 02:33:56 +0000
committerJeremy Allison <jra@samba.org>1998-06-09 02:33:56 +0000
commit1d77728bbba49699a05eb70b685a4a97d7598122 (patch)
treeaca52c7f7441bf253c33de82b18487aad51fbe52 /source/rpc_parse/parse_misc.c
parent34c91840a3d8c252715dc2f749b7a3b171a5b74f (diff)
downloadsamba-1d77728bbba49699a05eb70b685a4a97d7598122.tar.gz
samba-1d77728bbba49699a05eb70b685a4a97d7598122.tar.xz
samba-1d77728bbba49699a05eb70b685a4a97d7598122.zip
I was wrong about the length and max_length values in make_unistr2.
Jeremy.
Diffstat (limited to 'source/rpc_parse/parse_misc.c')
-rw-r--r--source/rpc_parse/parse_misc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c
index 4937751b898..35ca6c9553c 100644
--- a/source/rpc_parse/parse_misc.c
+++ b/source/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);