XtReallocArray does not exist on Debian. Something something debian old software idk.
This commit is contained in:
parent
7badf24576
commit
be6d44343e
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user