summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-28 23:07:26 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-28 23:07:26 +0000
commit85295c5c09e9e4c768f5de1d0192ff74316a7789 (patch)
tree26e2c629c88f486d75d0f65e48d31109c7c08e5f
parent82db6b6d9ff81633523fbf4a6cdcc2303e075b20 (diff)
downloadsamba-85295c5c09e9e4c768f5de1d0192ff74316a7789.tar.gz
samba-85295c5c09e9e4c768f5de1d0192ff74316a7789.tar.bz2
samba-85295c5c09e9e4c768f5de1d0192ff74316a7789.zip
init_unistr takes a const 2nd arg
(ps: I hate const) (This used to be commit 7030b7f06a8784469562562aa346d0c2918734d5)
-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));