From be6d44343efbb2a0ff24e849cb4a58ae879b8010 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 18 Jan 2024 02:36:29 +0000 Subject: [PATCH] XtReallocArray does not exist on Debian. Something something debian old software idk. --- libXmd/src/Buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libXmd/src/Buffer.c b/libXmd/src/Buffer.c index a7078d6..2b4823d 100644 --- a/libXmd/src/Buffer.c +++ b/libXmd/src/Buffer.c @@ -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 */