1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-23 20:59:10 +03:00

I was wrong about the length and max_length values in make_unistr2.

Jeremy.
This commit is contained in:
Jeremy Allison
-
parent 34c91840a3
commit 1d77728bbb

View File

@ -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);