mirror of
https://github.com/samba-team/samba.git
synced 2025-11-08 16:23:49 +03:00
r26429: Avoid use of global_smb_iconv_convenience.
This commit is contained in:
committed by
Stefan Metzmacher
parent
5a3a851dc7
commit
d37136b7ab
@@ -24,6 +24,7 @@
|
||||
#include "librpc/gen_ndr/ndr_misc.h"
|
||||
#include "ntvfs/ntvfs.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "param/param.h"
|
||||
|
||||
#define BLOB_CHECK(cmd) do { \
|
||||
NTSTATUS _status; \
|
||||
@@ -138,10 +139,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(global_smb_iconv_convenience, blob->data + offset + 1, str, dest_len-1, flags);
|
||||
ret = push_string(lp_iconv_convenience(global_loadparm), blob->data + offset + 1, str, dest_len-1, flags);
|
||||
}
|
||||
} else {
|
||||
ret = push_string(global_smb_iconv_convenience, blob->data + offset, str, dest_len, flags);
|
||||
ret = push_string(lp_iconv_convenience(global_loadparm), blob->data + offset, str, dest_len, flags);
|
||||
}
|
||||
|
||||
/* sometimes the string needs to be terminated, but the length
|
||||
|
||||
Reference in New Issue
Block a user