1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

UNICODE cleanup (see lib/util_unistr.c).

No more ugly static library buffers and all functions take a destination
string length (especially unistrcpy was rather dangerous; we were only
saved by the fact that datagrams are limited in size).
This commit is contained in:
Matthew Chapman
-
parent 6a437cfb33
commit a1d39af1ce
21 changed files with 324 additions and 352 deletions

View File

@ -136,7 +136,7 @@ static void reg_reply_open_entry(REG_Q_OPEN_ENTRY *q_u,
status = 0xC000000 | NT_STATUS_TOO_MANY_SECRETS; /* ha ha very droll */
}
fstrcpy(name, unistr2_to_str(&q_u->uni_name));
unistr2_to_ascii(name, &q_u->uni_name, sizeof(name));
if (status == 0x0)
{