XtReallocArray does not exist on Debian. Something something debian old software idk.

This commit is contained in:
Sasha Koshka 2024-01-18 02:36:29 +00:00
parent 7badf24576
commit be6d44343e

View File

@ -41,9 +41,9 @@ void XmdBufferResize (XmdBuffer *buffer, Cardinal length) {
void XmdBufferFit (XmdBuffer *buffer) { void XmdBufferFit (XmdBuffer *buffer) {
if (buffer->length > buffer->capacity) { if (buffer->length > buffer->capacity) {
buffer->capacity *= XmdBUFFER_GROWTH_FACTOR; buffer->capacity *= XmdBUFFER_GROWTH_FACTOR;
void *data = XtReallocArray ( void *data = XtRealloc (
buffer->data, buffer->data,
buffer->capacity, buffer->capacity *
buffer->size); buffer->size);
if (data == NULL) { if (data == NULL) {
/* TODO return error */ /* TODO return error */