summaryrefslogtreecommitdiff
path: root/source3/lib/util_unistr.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-12 06:12:19 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-12 06:12:19 +0000
commitd85dcf86d59c14cb624bbb69b658fc6aba842593 (patch)
treebbf2f5e28c6cc7cc328feb2c3a03352f85573509 /source3/lib/util_unistr.c
parent10a9addc222b29acdcfe6afed0597dd17551fa5c (diff)
downloadsamba-d85dcf86d59c14cb624bbb69b658fc6aba842593.tar.gz
samba-d85dcf86d59c14cb624bbb69b658fc6aba842593.tar.bz2
samba-d85dcf86d59c14cb624bbb69b658fc6aba842593.zip
largely rewrote smbpasswd so that the code is understandable. This
should allow us to call a function in swat rather than piping to smbpasswd. while doing this I also fixed quite a few "const char *" versus "char *" issues that cropped up while using const to track down bugs in the code. This led to changes in several generic functions. The smbpasswd changes should be correct but they have not been extensively tested. At least if I have introduced bugs then we should be able to fix them more easily than before. (This used to be commit 713864dd0322ae2ae2d83e333d85be35a7eed4ec)
Diffstat (limited to 'source3/lib/util_unistr.c')
-rw-r--r--source3/lib/util_unistr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index 49fb729267..c58820cfec 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -189,7 +189,7 @@ return number of unicode chars copied, excluding the null character.
only handles ascii strings
********************************************************************/
#define MAXUNI 1024
-int struni2(uint16 *p, char *buf)
+int struni2(uint16 *p, const char *buf)
{
int len = 0;