aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-09-01 09:09:21 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-09-01 09:09:21 +0300
commit96631a9a897cfc624410be9202e705282e0ea50f (patch)
treefd85b07ff4c2c284df7920752a37717b1b007d39
parent84fcfeb07c3c785e818b5a13452b76f2055457a0 (diff)
downloadpam-modules-96631a9a897cfc624410be9202e705282e0ea50f.tar.gz
pam-modules-96631a9a897cfc624410be9202e705282e0ea50f.tar.bz2
Bugfix
* lib/mem.c (gray_2nrealloc): Add missing multiplier.
-rw-r--r--lib/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mem.c b/lib/mem.c
index bcb0a89..92dfed1 100644
--- a/lib/mem.c
+++ b/lib/mem.c
@@ -29,3 +29,3 @@ gray_2nrealloc(void *ptr, size_t *pcount, size_t elsiz)
} else {
- if ((size_t)-1 / 2 / elsiz <= count) {
+ if ((size_t)-1 / 3 * 2 / elsiz <= count) {
errno = ENOMEM;

Return to:

Send suggestions and report system problems to the System administrator.