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
@@ -27,7 +27,7 @@ gray_2nrealloc(void *ptr, size_t *pcount, size_t elsiz)
27 count += !count; 27 count += !count;
28 } 28 }
29 } else { 29 } else {
30 if ((size_t)-1 / 2 / elsiz <= count) { 30 if ((size_t)-1 / 3 * 2 / elsiz <= count) {
31 errno = ENOMEM; 31 errno = ENOMEM;
32 return NULL; 32 return NULL;
33 } 33 }

Return to:

Send suggestions and report system problems to the System administrator.