From 3fbe6edb3f2250fcf494e70105039a4f32c52066 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 6 Apr 2021 03:20:43 +0200 Subject: Use libsimple instead of libcore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- dice.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dice.c') diff --git a/dice.c b/dice.c index 69fc911..3403c59 100644 --- a/dice.c +++ b/dice.c @@ -1,6 +1,5 @@ /* See LICENSE file for copyright and license details. */ #include "common.h" -#include /* TODO add support for up and down arrows to browse previous entries in the same session */ @@ -74,7 +73,7 @@ parse_dice(const char *s, struct die **dicep, size_t *ndicep) if (!isdigit(*s) && *s != '-' && *s != 'd' && *s != 'D') goto invalid; - dice = erealloc2(dice, ++ndice, sizeof(*dice)); + dice = ereallocn(dice, ++ndice, sizeof(*dice), 0); die = &dice[ndice - 1]; die->count = 1; die->min = 1; -- cgit v1.2.3-70-g09d2