diff options
author | Matthew Chapman <matty@samba.org> | 1999-04-11 01:39:16 +0000 |
---|---|---|
committer | Matthew Chapman <matty@samba.org> | 1999-04-11 01:39:16 +0000 |
commit | c518cef78d53a76451e5ea0ac93d75930306fa47 (patch) | |
tree | 3b55fdaf1d94dfc06edd5ee5c9492f335b26f975 /source/rpc_parse/parse_misc.c | |
parent | d04c530836202ca2277176341261b3ac78f4956a (diff) | |
download | samba-c518cef78d53a76451e5ea0ac93d75930306fa47.tar.gz samba-c518cef78d53a76451e5ea0ac93d75930306fa47.tar.xz samba-c518cef78d53a76451e5ea0ac93d75930306fa47.zip |
Incorrect length (number of unicode characters rather than buffer size)
passed to ascii_to_unibuf in make_buffer2 was breaking User Manager.
Diffstat (limited to 'source/rpc_parse/parse_misc.c')
-rw-r--r-- | source/rpc_parse/parse_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c index 51587e6d7a5..a84469f8f9c 100644 --- a/source/rpc_parse/parse_misc.c +++ b/source/rpc_parse/parse_misc.c @@ -530,7 +530,7 @@ void make_buffer2(BUFFER2 *str, const char *buf, int len) str->undoc = 0; /* store the string */ - ascii_to_unibuf(str->buffer, buf, len); + ascii_to_unibuf(str->buffer, buf, MIN(str->buf_len, sizeof(str->buffer)-1)); } /******************************************************************* |