summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse/parse_misc.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-01 17:01:34 +0000
committerJeremy Allison <jra@samba.org>2000-06-01 17:01:34 +0000
commitc2099cfb033c2cdb6035f4f7f50ce21b98e1584d (patch)
treeebd66d1339c8c2664c4c655acb464b4125dd4c30 /source/rpc_parse/parse_misc.c
parent864e7bde0e804edbb2425b9c4c7ff271553f8169 (diff)
downloadsamba-c2099cfb033c2cdb6035f4f7f50ce21b98e1584d.tar.gz
samba-c2099cfb033c2cdb6035f4f7f50ce21b98e1584d.tar.xz
samba-c2099cfb033c2cdb6035f4f7f50ce21b98e1584d.zip
Getting back to a compilable state (not there yet but close).
Added patches for random -> sys_random. Added set_effective_xxx patches for AFS code. Memory allocation changes in spoolss code. Jeremy.
Diffstat (limited to 'source/rpc_parse/parse_misc.c')
-rw-r--r--source/rpc_parse/parse_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c
index e68cd3ae122..935d83cafa5 100644
--- a/source/rpc_parse/parse_misc.c
+++ b/source/rpc_parse/parse_misc.c
@@ -785,14 +785,14 @@ BOOL smb_io_string2(char *desc, STRING2 *str2, uint32 buffer, prs_struct *ps, in
Inits a UNISTR2 structure.
********************************************************************/
-void init_unistr2(UNISTR2 *str, char *buf, int len)
+void init_unistr2(UNISTR2 *str, const char *buf, size_t len)
{
ZERO_STRUCTP(str);
/* set up string lengths. */
- str->uni_max_len = len;
+ str->uni_max_len = (uint32)len;
str->undoc = 0;
- str->uni_str_len = len;
+ str->uni_str_len = (uint32)len;
/* store the string (null-terminated 8 bit chars into 16 bit chars) */
dos_struni2((char *)str->buffer, buf, sizeof(str->buffer));