summaryrefslogtreecommitdiff
path: root/source3/lib/util_unistr.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-03-22 20:39:31 +0000
committerJeremy Allison <jra@samba.org>2000-03-22 20:39:31 +0000
commit6814d0f45689d2a17af3d95511208421d10f5fce (patch)
treea4ae5be71672b98f19d3319af45bd82312bbb6f4 /source3/lib/util_unistr.c
parent8f1620125dcb9c29c223f4efb6485528ece70f11 (diff)
downloadsamba-6814d0f45689d2a17af3d95511208421d10f5fce.tar.gz
samba-6814d0f45689d2a17af3d95511208421d10f5fce.tar.bz2
samba-6814d0f45689d2a17af3d95511208421d10f5fce.zip
Correctly convert from little-endian UNICODE to dos_codepage when doing
secure file create. Jeremy. (This used to be commit 90134dd13721f60d4fb05ce9434b65e95ff09629)
Diffstat (limited to 'source3/lib/util_unistr.c')
-rw-r--r--source3/lib/util_unistr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index c981aba51a..27bd615bf4 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -149,6 +149,8 @@ char *skip_unicode_string(char *buf,int n)
/*******************************************************************
Return a DOS codepage version of a little-endian unicode string.
+ len is the filename length (ignoring any terminating zero) in uin16
+ units. Always null terminates.
Hack alert: uses fixed buffer(s).
********************************************************************/