1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r26263: Don't assume CH_UNIX is CH_UTF8.

This commit is contained in:
Jelmer Vernooij 2007-12-03 17:58:04 +01:00 committed by Stefan Metzmacher
parent 6017b16f50
commit 69157be9b1

View File

@ -85,7 +85,7 @@ static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx,
switch (type) {
case REG_SZ:
case REG_EXPAND_SZ:
val.length = convert_string_talloc(mem_ctx, CH_UTF16, CH_UTF8,
val.length = convert_string_talloc(mem_ctx, CH_UTF16, CH_UNIX,
(void *)data.data,
data.length,
(void **)&val.data);