diff options
author | Jeremy Allison <jra@samba.org> | 1998-06-09 02:33:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-06-09 02:33:56 +0000 |
commit | 1b86bead993051f93ea1570ad404e270b06045d3 (patch) | |
tree | 97dff5bc39450846c841a7b5c0c2033b183471fe | |
parent | e85295d9241bcdad3723898ab8ad88d8f11d5f28 (diff) | |
download | samba-1b86bead993051f93ea1570ad404e270b06045d3.tar.gz samba-1b86bead993051f93ea1570ad404e270b06045d3.tar.bz2 samba-1b86bead993051f93ea1570ad404e270b06045d3.zip |
I was wrong about the length and max_length values in make_unistr2.
Jeremy.
(This used to be commit 1d77728bbba49699a05eb70b685a4a97d7598122)
-rw-r--r-- | source3/rpc_parse/parse_misc.c | 4 |
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); |