summaryrefslogtreecommitdiffstats
path: root/source/librpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-01-16 18:26:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:11 -0500
commitd948d828d591b3467945f5a85a561ebb07299d9f (patch)
treef00629f4426dd5c979d36b4df9af4556a858356b /source/librpc
parent34d891c81ad4226bb1f0e26902c4e4afaba6d62f (diff)
downloadsamba-d948d828d591b3467945f5a85a561ebb07299d9f.tar.gz
samba-d948d828d591b3467945f5a85a561ebb07299d9f.tar.xz
samba-d948d828d591b3467945f5a85a561ebb07299d9f.zip
r20839: Fix other C++ warnings
Diffstat (limited to 'source/librpc')
-rw-r--r--source/librpc/ndr/libndr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/librpc/ndr/libndr.h b/source/librpc/ndr/libndr.h
index 6032185d212..32dd0ef6c59 100644
--- a/source/librpc/ndr/libndr.h
+++ b/source/librpc/ndr/libndr.h
@@ -274,7 +274,7 @@ enum ndr_compression_alg {
#define NDR_PUSH_ALLOC_SIZE(ndr, s, size) do { \
- (s) = talloc_size(ndr, size); \
+ (s) = talloc_array(ndr, uint8, size); \
if (!(s)) return ndr_push_error(ndr, NDR_ERR_ALLOC, "push alloc %u failed: %s\n", (unsigned)size, __location__); \
} while (0)