From 1b86bead993051f93ea1570ad404e270b06045d3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 9 Jun 1998 02:33:56 +0000 Subject: I was wrong about the length and max_length values in make_unistr2. Jeremy. (This used to be commit 1d77728bbba49699a05eb70b685a4a97d7598122) --- source3/rpc_parse/parse_misc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/rpc_parse') 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); -- cgit