| 658 | memory_exhausted(_("integer overflow")); |
| 659 | } |
| 660 | |
| 661 | static void * |
| 662 | growalloc(void *ptr, ptrdiff_t itemsize, ptrdiff_t nitems, |
| 663 | ptrdiff_t *nitems_alloc) |
| 664 | { |
| 665 | return (nitems < *nitems_alloc |
| 666 | ? ptr |
| 667 | : xrealloc(ptr, grow_nitems_alloc(nitems_alloc, itemsize))); |
| 668 | } |
| 669 | |
| 670 | /* |