From f85b822bd4feaab179ffbf00496fcb7d1905fc8c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 27 Aug 2010 09:50:31 +1000 Subject: libcli/security Use talloc_realloc() not TALLOC_REALLOC_ARRAY() Signed-off-by: Andrew Tridgell --- libcli/security/privileges.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcli') diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c index 8c5ca347f5..d72401af3f 100644 --- a/libcli/security/privileges.c +++ b/libcli/security/privileges.c @@ -371,7 +371,7 @@ static bool privilege_set_add(PRIVILEGE_SET *priv_set, struct lsa_LUIDAttribute /* we can allocate memory to add the new privilege */ - new_set = TALLOC_REALLOC_ARRAY(priv_set->mem_ctx, priv_set->set, struct lsa_LUIDAttribute, priv_set->count + 1); + new_set = talloc_realloc(priv_set->mem_ctx, priv_set->set, struct lsa_LUIDAttribute, priv_set->count + 1); if ( !new_set ) { DEBUG(0,("privilege_set_add: failed to allocate memory!\n")); return false; -- cgit