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
@@ -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 | } |