r25000: Fix some more C++ compatibility warnings.
[tprouty/samba.git] / source4 / librpc / ndr / libndr.h
index 09a2680190f6fb9249c72a28de1d71b6a55c1698..522031b8e419772413c8f049641f48b3f5b4da94 100644 (file)
@@ -269,7 +269,7 @@ enum ndr_compression_alg {
 
 
 #define NDR_PUSH_ALLOC_SIZE(ndr, s, size) do { \
-       (s) = talloc_size(ndr, size); \
+       (s) = talloc_array(ndr, uint8_t, size); \
        if (!(s)) return ndr_push_error(ndr, NDR_ERR_ALLOC, "push alloc %u failed: %s\n", (unsigned)size, __location__); \
 } while (0)