OSDN Git Service

* src/lharc.c (main): use xrealloc().
[lha/lha.git] / src / lharc.c
index 1693344..4be3b2b 100644 (file)
@@ -405,10 +405,8 @@ work:
 
                        if (cmd_filec >= xfilec) {
                                xfilec += 256;
 
                        if (cmd_filec >= xfilec) {
                                xfilec += 256;
-                               cmd_filev = (char **) realloc(xfilev,
+                               cmd_filev = (char **) xrealloc(xfilev,
                                                   sizeof(char *) * xfilec);
                                                   sizeof(char *) * xfilec);
-                               if (cmd_filev == NULL)
-                                       fatal_error("Virtual memory exhausted\n");
                                xfilev = cmd_filev;
                        }
                        if (strlen(inpbuf) < 1)
                                xfilev = cmd_filev;
                        }
                        if (strlen(inpbuf) < 1)