diff options
Diffstat (limited to 'source/librpc/ndr/ndr.c')
-rw-r--r-- | source/librpc/ndr/ndr.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/librpc/ndr/ndr.c b/source/librpc/ndr/ndr.c index a692f398df5..6d174d38c3f 100644 --- a/source/librpc/ndr/ndr.c +++ b/source/librpc/ndr/ndr.c @@ -213,13 +213,16 @@ static void ndr_print_string_helper(struct ndr_print *ndr, const char *format, . int i; for (i=0;i<ndr->depth;i++) { - ndr->private_data = talloc_asprintf_append(ndr->private_data, " "); + ndr->private_data = talloc_asprintf_append( + (char *)ndr->private_data, " "); } va_start(ap, format); - ndr->private_data = talloc_vasprintf_append(ndr->private_data, format, ap); + ndr->private_data = talloc_vasprintf_append( + (char *)ndr->private_data, format, ap); va_end(ap); - ndr->private_data = talloc_asprintf_append(ndr->private_data, "\n"); + ndr->private_data = talloc_asprintf_append( + (char *)ndr->private_data, "\n"); } /* |