From b9408e0ce1267d0b81ce7af39223c5b8694ae19d Mon Sep 17 00:00:00 2001 From: arai Date: Sat, 18 May 2002 17:44:27 +0000 Subject: [PATCH] * src/lharc.c (main): use xrealloc(). git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@51 6a8cc165-1e22-0410-a132-eb4e3f353aba --- src/lharc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lharc.c b/src/lharc.c index 1693344..4be3b2b 100644 --- a/src/lharc.c +++ b/src/lharc.c @@ -405,10 +405,8 @@ work: if (cmd_filec >= xfilec) { xfilec += 256; - cmd_filev = (char **) realloc(xfilev, + cmd_filev = (char **) xrealloc(xfilev, sizeof(char *) * xfilec); - if (cmd_filev == NULL) - fatal_error("Virtual memory exhausted\n"); xfilev = cmd_filev; } if (strlen(inpbuf) < 1) -- 2.11.0