summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/winbindd/idmap_autorid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c
index 391a31405f..fc362fc17c 100644
--- a/source3/winbindd/idmap_autorid.c
+++ b/source3/winbindd/idmap_autorid.c
@@ -834,7 +834,7 @@ static NTSTATUS idmap_autorid_preallocate_wellknown(struct idmap_domain *dom)
return NT_STATUS_OK;
}
- num = sizeof(groups)/sizeof(char*);
+ num = ARRAY_SIZE(groups);
maps = talloc_zero_array(talloc_tos(), struct id_map*, num+1);
if (!maps) {