From: Ezra Peisach Date: Thu, 1 Jun 2006 01:41:33 +0000 (+0000) Subject: Missed a reference to + sizeof() vs * sizeof(). Pointed out by X-Git-Tag: krb5-1.5-beta1~71 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2e376ed28688004f733853cdca98e848a77d1d39;p=krb5.git 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 --- 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 {