From: James Bowes Date: Tue, 27 Mar 2007 22:30:08 GMT Subject: [PATCH] use xrealloc in help.c Message-ID: <1175034608589-git-send-email-jbowes@dangerouslyinc.com> Signed-off-by: James Bowes --- help.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/help.c b/help.c index be8651a..34b1dda 100644 --- a/help.c +++ b/help.c @@ -54,7 +54,7 @@ static void add_cmdname(const char *name, int len) struct cmdname *ent; if (cmdname_alloc <= cmdname_cnt) { cmdname_alloc = cmdname_alloc + 200; - cmdname = realloc(cmdname, cmdname_alloc * sizeof(*cmdname)); + cmdname = xrealloc(cmdname, cmdname_alloc * sizeof(*cmdname)); if (!cmdname) oom(); } -- 1.5.0.5