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
1 changed files with 2 additions and 2 deletions

View File

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