aboutsummaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authornicm <nicm>2014-10-08 17:35:58 +0000
committernicm <nicm>2014-10-08 17:35:58 +0000
commita27ba6e38006c12c48de88600b8cff9f6aabfed7 (patch)
treefc8ecf1c1b965f70b95d0a3e472cd0b1a2e1d2c9 /screen.c
parent77efcf8bdd14cd19dc445cf6e44bba7af414939c (diff)
downloadrtmux-a27ba6e38006c12c48de88600b8cff9f6aabfed7.tar.gz
rtmux-a27ba6e38006c12c48de88600b8cff9f6aabfed7.tar.bz2
rtmux-a27ba6e38006c12c48de88600b8cff9f6aabfed7.zip
Add xreallocarray and remove nmemb argument from xrealloc.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen.c b/screen.c
index 703f3e10..e5550222 100644
--- a/screen.c
+++ b/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) {