diff options
author | Ezra Peisach <epeisach@mit.edu> | 2006-06-01 01:41:33 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2006-06-01 01:41:33 +0000 |
commit | 2e376ed28688004f733853cdca98e848a77d1d39 (patch) | |
tree | a1fddb3c2b589c64839c21b8c7d26d3568d96d8a /src/util | |
parent | 218cd01853820bc9bcd6700f0d3b98458eb7c8a9 (diff) | |
download | krb5-2e376ed28688004f733853cdca98e848a77d1d39.tar.gz krb5-2e376ed28688004f733853cdca98e848a77d1d39.tar.xz krb5-2e376ed28688004f733853cdca98e848a77d1d39.zip |
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
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/support/plugins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c index de659cb1a2..9d025942ec 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 { |