diff options
author | Matthew Chapman <matty@samba.org> | 1999-02-12 00:16:09 +0000 |
---|---|---|
committer | Matthew Chapman <matty@samba.org> | 1999-02-12 00:16:09 +0000 |
commit | a1d39af1ce1d451b811dbd7c2ba391214851b87e (patch) | |
tree | 50763e0eb25cd4b9bcd4c988d633ef808a46f8cd /source/rpc_server/srv_reg.c | |
parent | 6a437cfb33f24913e0c1f8484c0b08ef317e513b (diff) | |
download | samba-a1d39af1ce1d451b811dbd7c2ba391214851b87e.tar.gz samba-a1d39af1ce1d451b811dbd7c2ba391214851b87e.tar.xz samba-a1d39af1ce1d451b811dbd7c2ba391214851b87e.zip |
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).
Diffstat (limited to 'source/rpc_server/srv_reg.c')
-rw-r--r-- | source/rpc_server/srv_reg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rpc_server/srv_reg.c b/source/rpc_server/srv_reg.c index f98133626d5..52fff8716c1 100644 --- a/source/rpc_server/srv_reg.c +++ b/source/rpc_server/srv_reg.c @@ -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) { |