summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tdr/tdr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdr/tdr.h b/lib/tdr/tdr.h
index 1eedc580d5..84f3e50c2b 100644
--- a/lib/tdr/tdr.h
+++ b/lib/tdr/tdr.h
@@ -55,7 +55,7 @@ struct tdr_print {
} while (0)
#define TDR_ALLOC(ctx, s, n) do { \
- (s) = talloc_array_size(ctx, sizeof(*(s)), n); \
+ (s) = talloc_array_ptrtype(ctx, (s), n); \
if ((n) && !(s)) return NT_STATUS_NO_MEMORY; \
} while (0)