summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_parse/parse_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index b12688d362..e68cd3ae12 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/rpc_parse/parse_misc.c
@@ -475,7 +475,7 @@ BOOL smb_io_unihdr2(char *desc, UNIHDR2 *hdr2, prs_struct *ps, int depth)
Inits a UNISTR structure.
********************************************************************/
-void init_unistr(UNISTR *str, char *buf)
+void init_unistr(UNISTR *str, const char *buf)
{
/* store the string (null-terminated copy) */
dos_struni2((char *)str->buffer, buf, sizeof(str->buffer));