diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-10-17 08:34:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:44:50 -0500 |
commit | 31ffec1d4194f947eb27c11b488bbe105ea8b8c5 (patch) | |
tree | 9f66a718604f17eff83baca8b5f53ab00360142b | |
parent | a8e69328bf90eabca3808a3fe48ffe9245b0eb80 (diff) | |
download | samba-31ffec1d4194f947eb27c11b488bbe105ea8b8c5.tar.gz samba-31ffec1d4194f947eb27c11b488bbe105ea8b8c5.tar.bz2 samba-31ffec1d4194f947eb27c11b488bbe105ea8b8c5.zip |
r11107: Include 0 byte
(This used to be commit 407df9628e383822680af766dd94532e59397382)
-rw-r--r-- | source4/librpc/ndr/ndr_string.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/ndr/ndr_string.c b/source4/librpc/ndr/ndr_string.c index 684bc047c0..1a922e2880 100644 --- a/source4/librpc/ndr/ndr_string.c +++ b/source4/librpc/ndr/ndr_string.c @@ -680,5 +680,6 @@ NTSTATUS ndr_push_charset(struct ndr_push *ndr, int ndr_flags, const char *var, uint32_t ndr_charset_length(const void *var, int chset) { /* FIXME: Treat special chars special here, taking chset into account */ - return strlen(var); + /* Also include 0 byte */ + return strlen(var)+1; } |