From: arai Date: Sat, 18 May 2002 17:44:27 +0000 (+0000) Subject: * src/lharc.c (main): use xrealloc(). X-Git-Url: http://git.sourceforge.jp/view?p=lha%2Flha.git;a=commitdiff_plain;h=b9408e0ce1267d0b81ce7af39223c5b8694ae19d;hp=718734b3f6a2f888823eb1d36869b0a7f85fea18;ds=sidebyside * src/lharc.c (main): use xrealloc(). git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@51 6a8cc165-1e22-0410-a132-eb4e3f353aba --- 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)