From 000c1ca40b08f768afe8af767cc5892ab41ef483 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 9 Mar 2000 19:15:48 +0000 Subject: [PATCH] Fix calloc typo --- servers/slapd/oc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/oc.c b/servers/slapd/oc.c index 0f978b1a4a..a8997bc779 100644 --- a/servers/slapd/oc.c +++ b/servers/slapd/oc.c @@ -297,8 +297,8 @@ oc_add_sups( sups1++; } nsups++; - soc->soc_sups = (ObjectClass **)ch_calloc(1, - nsups*sizeof(ObjectClass *)); + soc->soc_sups = (ObjectClass **)ch_calloc(nsups, + sizeof(ObjectClass *)); } nsups = 0; sups1 = sups; -- 2.39.5