summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/ndr/ndr_string.c3
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;
}