… | |
… | |
2772 | &ct2.nitems, &bytes_after, |
2772 | &ct2.nitems, &bytes_after, |
2773 | &ct2.value) != Success) |
2773 | &ct2.value) != Success) |
2774 | goto bailout; |
2774 | goto bailout; |
2775 | |
2775 | |
2776 | // realloc should be compatible to XFree, here, and elsewhere, too |
2776 | // realloc should be compatible to XFree, here, and elsewhere, too |
2777 | ct.value = (unsigned char *)realloc (ct.value, ct.nitems + ct2.nitems + 1); |
2777 | ct.value = (unsigned char *)rxvt_realloc (ct.value, ct.nitems + ct2.nitems + 1); |
2778 | memcpy (ct.value + ct.nitems, ct2.value, ct2.nitems + 1); |
2778 | memcpy (ct.value + ct.nitems, ct2.value, ct2.nitems + 1); |
2779 | ct.nitems += ct2.nitems; |
2779 | ct.nitems += ct2.nitems; |
2780 | |
2780 | |
2781 | XFree (ct2.value); |
2781 | XFree (ct2.value); |
2782 | } |
2782 | } |
… | |
… | |
2831 | incr_ev.start (10); |
2831 | incr_ev.start (10); |
2832 | |
2832 | |
2833 | while (incr_buf_fill + ct.nitems > incr_buf_size) |
2833 | while (incr_buf_fill + ct.nitems > incr_buf_size) |
2834 | { |
2834 | { |
2835 | incr_buf_size = incr_buf_size ? incr_buf_size * 2 : 128*1024; |
2835 | incr_buf_size = incr_buf_size ? incr_buf_size * 2 : 128*1024; |
2836 | incr_buf = (char *)realloc (incr_buf, incr_buf_size); |
2836 | incr_buf = (char *)rxvt_realloc (incr_buf, incr_buf_size); |
2837 | } |
2837 | } |
2838 | |
2838 | |
2839 | memcpy (incr_buf + incr_buf_fill, ct.value, ct.nitems); |
2839 | memcpy (incr_buf + incr_buf_fill, ct.value, ct.nitems); |
2840 | incr_buf_fill += ct.nitems; |
2840 | incr_buf_fill += ct.nitems; |
2841 | |
2841 | |