diff options
Diffstat (limited to 'term-utils/script-playutils.c')
-rw-r--r-- | term-utils/script-playutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/term-utils/script-playutils.c b/term-utils/script-playutils.c index 699865b..1dec1af 100644 --- a/term-utils/script-playutils.c +++ b/term-utils/script-playutils.c @@ -165,7 +165,7 @@ static struct replay_log *replay_new_log(struct replay_setup *stp, assert(streams); assert(filename); - stp->logs = xrealloc(stp->logs, (stp->nlogs + 1) * sizeof(*log)); + stp->logs = xreallocarray(stp->logs, stp->nlogs + 1, sizeof(*log)); log = &stp->logs[stp->nlogs]; stp->nlogs++; |