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) {
|
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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user