From 85295c5c09e9e4c768f5de1d0192ff74316a7789 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 28 May 2000 23:07:26 +0000 Subject: init_unistr takes a const 2nd arg (ps: I hate const) (This used to be commit 7030b7f06a8784469562562aa346d0c2918734d5) --- source3/rpc_parse/parse_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_parse') 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)); -- cgit