diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-21 01:59:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:15 -0500 |
commit | df3248f1087549d0fd11e003b3f1ac61b97aa7f7 (patch) | |
tree | 0ea7e64645ccfe21a1df15127aea8fa5ec48c783 /source4/librpc/ndr | |
parent | 997da16d6c7bd85ac9e3042fe874f8a5f79208b3 (diff) | |
download | samba-df3248f1087549d0fd11e003b3f1ac61b97aa7f7.tar.gz samba-df3248f1087549d0fd11e003b3f1ac61b97aa7f7.tar.bz2 samba-df3248f1087549d0fd11e003b3f1ac61b97aa7f7.zip |
r9441: Use "const char *" for fixed-size arrays with charset() because
these can require more elements in the local charset (usually UTF8) then
in the wire one.
(This used to be commit a0e63c2691f596cdacbc2e15404829ebca075429)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r-- | source4/librpc/ndr/ndr_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/ndr/ndr_string.c b/source4/librpc/ndr/ndr_string.c index 97be5f61bf..e9d6425f54 100644 --- a/source4/librpc/ndr/ndr_string.c +++ b/source4/librpc/ndr/ndr_string.c @@ -647,7 +647,7 @@ NTSTATUS ndr_push_charset(struct ndr_push *ndr, int ndr_flags, const char *var, NDR_PUSH_NEED_BYTES(ndr, required); ret = convert_string(CH_UNIX, chset, - var, length, + var, strlen(var), ndr->data+ndr->offset, required); if (ret == -1) { return ndr_push_error(ndr, NDR_ERR_CHARCNV, |