From 2e376ed28688004f733853cdca98e848a77d1d39 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 1 Jun 2006 01:41:33 +0000 Subject: [PATCH] Missed a reference to + sizeof() vs * sizeof(). Pointed out by william fiveash. ticket: 3825 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18071 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/support/plugins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c index de659cb1a..9d025942e 100644 --- a/src/util/support/plugins.c +++ b/src/util/support/plugins.c @@ -626,7 +626,7 @@ krb5int_get_plugin_dir_func (struct plugin_dir_handle *dirhandle, void (**newp)() = NULL; count++; - newp = realloc (p, ((count + 1) + sizeof (*p))); /* +1 for NULL */ + newp = realloc (p, ((count + 1) * sizeof (*p))); /* +1 for NULL */ if (newp == NULL) { err = errno; } else { -- 2.26.2