1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

Remove iconv_convenience parameter from simple string push/pull

functions.
This commit is contained in:
Jelmer Vernooij
2008-10-24 03:40:09 +02:00
parent 23b04a31f1
commit 922a29992e
26 changed files with 392 additions and 401 deletions

View File

@ -140,10 +140,10 @@ size_t smbsrv_blob_push_string(TALLOC_CTX *mem_ctx,
alignment = 1;
if (dest_len > 0) {
SCVAL(blob->data + offset, 0, 0);
ret = push_string(lp_iconv_convenience(global_loadparm), blob->data + offset + 1, str, dest_len-1, flags);
ret = push_string(blob->data + offset + 1, str, dest_len-1, flags);
}
} else {
ret = push_string(lp_iconv_convenience(global_loadparm), blob->data + offset, str, dest_len, flags);
ret = push_string(blob->data + offset, str, dest_len, flags);
}
/* sometimes the string needs to be terminated, but the length