mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Add xreallocarray and remove nmemb argument from xrealloc.
This commit is contained in:
parent
77efcf8bdd
commit
a27ba6e380
17 changed files with 65 additions and 48 deletions
4
screen.c
4
screen.c
|
|
@ -215,8 +215,8 @@ screen_resize_y(struct screen *s, u_int sy)
|
|||
}
|
||||
|
||||
/* Resize line arrays. */
|
||||
gd->linedata = xrealloc(
|
||||
gd->linedata, gd->hsize + sy, sizeof *gd->linedata);
|
||||
gd->linedata = xreallocarray(gd->linedata, gd->hsize + sy,
|
||||
sizeof *gd->linedata);
|
||||
|
||||
/* Size increasing. */
|
||||
if (sy > oldy) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue