mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-14 07:49:01 +02:00
Add xreallocarray and remove nmemb argument from xrealloc.
This commit is contained in:
4
input.c
4
input.c
@ -909,7 +909,7 @@ input_ground(struct input_ctx *ictx)
|
||||
|
||||
if (ictx->input_space > INPUT_BUF_START) {
|
||||
ictx->input_space = INPUT_BUF_START;
|
||||
ictx->input_buf = xrealloc(ictx->input_buf, 1, INPUT_BUF_START);
|
||||
ictx->input_buf = xrealloc(ictx->input_buf, INPUT_BUF_START);
|
||||
}
|
||||
}
|
||||
|
||||
@ -974,7 +974,7 @@ input_input(struct input_ctx *ictx)
|
||||
ictx->flags |= INPUT_DISCARD;
|
||||
return (0);
|
||||
}
|
||||
ictx->input_buf = xrealloc(ictx->input_buf, 1, available);
|
||||
ictx->input_buf = xrealloc(ictx->input_buf, available);
|
||||
ictx->input_space = available;
|
||||
}
|
||||
ictx->input_buf[ictx->input_len++] = ictx->ch;
|
||||
|
Reference in New Issue
Block a user