summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-02-12 00:39:36 +0000
committerAndrew Tridgell <tridge@samba.org>2003-02-12 00:39:36 +0000
commit3cf539421fa2a5c276baeedbdbf42ced29d9f1e4 (patch)
tree5746964becbf979db546dfd7439efd5caf99aae5
parent2ef72f95003cebf2ff56e47f16fb8be0e8032042 (diff)
downloadsamba-3cf539421fa2a5c276baeedbdbf42ced29d9f1e4.tar.gz
samba-3cf539421fa2a5c276baeedbdbf42ced29d9f1e4.tar.xz
samba-3cf539421fa2a5c276baeedbdbf42ced29d9f1e4.zip
pull_ucs2_talloc() should pull to a char**, not a void**
-rw-r--r--source/lib/charcnv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/charcnv.c b/source/lib/charcnv.c
index 6dd3cd52d97..54e17bea686 100644
--- a/source/lib/charcnv.c
+++ b/source/lib/charcnv.c
@@ -605,11 +605,11 @@ size_t pull_ucs2_fstring(char *dest, const void *src)
* @retval The number of bytes occupied by the string in the destination
**/
-size_t pull_ucs2_talloc(TALLOC_CTX *ctx, void **dest, const smb_ucs2_t *src)
+size_t pull_ucs2_talloc(TALLOC_CTX *ctx, char **dest, const smb_ucs2_t *src)
{
size_t src_len = (strlen_w(src)+1) * sizeof(smb_ucs2_t);
*dest = NULL;
- return convert_string_talloc(ctx, CH_UCS2, CH_UNIX, src, src_len, dest);
+ return convert_string_talloc(ctx, CH_UCS2, CH_UNIX, src, src_len, (void **)dest);
}
/**