diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-09-01 09:09:21 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-09-01 09:09:21 +0300 |
commit | 96631a9a897cfc624410be9202e705282e0ea50f (patch) | |
tree | fd85b07ff4c2c284df7920752a37717b1b007d39 | |
parent | 84fcfeb07c3c785e818b5a13452b76f2055457a0 (diff) | |
download | pam-modules-96631a9a897cfc624410be9202e705282e0ea50f.tar.gz pam-modules-96631a9a897cfc624410be9202e705282e0ea50f.tar.bz2 |
Bugfix
* lib/mem.c (gray_2nrealloc): Add missing multiplier.
-rw-r--r-- | lib/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |