summaryrefslogtreecommitdiff
path: root/source3/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
commit203622b7340b6e3309ce73f0d51ea9712cb09768 (patch)
tree60e04e4e836cc59276e15554e0b9ce6641d9893b /source3/librpc
parent2202bbf4ab179e2c67f0448bcfaec81bb27ddb04 (diff)
downloadsamba-203622b7340b6e3309ce73f0d51ea9712cb09768.tar.gz
samba-203622b7340b6e3309ce73f0d51ea9712cb09768.tar.bz2
samba-203622b7340b6e3309ce73f0d51ea9712cb09768.zip
r20839: Fix other C++ warnings
(This used to be commit d948d828d591b3467945f5a85a561ebb07299d9f)
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/ndr/libndr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/librpc/ndr/libndr.h b/source3/librpc/ndr/libndr.h
index 6032185d21..32dd0ef6c5 100644
--- a/source3/librpc/ndr/libndr.h
+++ b/source3/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)