diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-10 22:31:34 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-10 22:31:34 -0800 |
commit | 2b3c44e4fb980335c22abcc07a88f32b13e5918f (patch) | |
tree | 47eedc95e86696e59a7ce650b5a3eb03a8a1be9e /source3/lib/util_unistr.c | |
parent | 41ae2a0a17d3f67252e81a6db730f87ce26fb939 (diff) | |
download | samba-2b3c44e4fb980335c22abcc07a88f32b13e5918f.tar.gz samba-2b3c44e4fb980335c22abcc07a88f32b13e5918f.tar.bz2 samba-2b3c44e4fb980335c22abcc07a88f32b13e5918f.zip |
Always define PATH_MAX. Makes code simpler (removes
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.
(This used to be commit e203ba22275320808bc11b17361ad1f2d5b0b897)
Diffstat (limited to 'source3/lib/util_unistr.c')
-rw-r--r-- | source3/lib/util_unistr.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index e9e2c33fb3..c4569e102e 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -350,11 +350,20 @@ char *rpcstr_pull_unistr2_talloc(TALLOC_CTX *mem_ctx, const UNISTR2 *src) /* Converts a string from internal samba format to unicode */ -int rpcstr_push(void* dest, const char *src, size_t dest_len, int flags) +int rpcstr_push(void *dest, const char *src, size_t dest_len, int flags) { return push_ucs2(NULL, dest, src, dest_len, flags|STR_UNICODE|STR_NOALIGN); } +/* Converts a string from internal samba format to unicode. Always terminates. + * Actually just a wrapper round push_ucs2_talloc(). + */ + +int rpcstr_push_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src) +{ + return push_ucs2_talloc(ctx, dest, src); +} + /******************************************************************* Convert a (little-endian) UNISTR2 structure to an ASCII string. ********************************************************************/ |