* lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Feb 2007 02:20:40 +0000 (02:20 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Feb 2007 02:20:40 +0000 (02:20 +0000)
commit9d7a0ecef081c6ff4233d7bd5fd4c38ab3939d52
tree92bba090a72e9568eb3108245eacf500f79f8d41
parent8a334dd33faad7ad4df09fdb7db9f2329792f9f8
* lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
checking code.  Set N = ceil (1.5 * N) rather than to a slightly
larger value.

        Give tools a better chance to allocate space for very large buffers.
* lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
ChangeLog
lib/xalloc.h