Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!caip!clyde!cbatt!ihnp4!ihlpf!spear From: spear@ihlpf.UUCP (Spearman) Newsgroups: net.sources.d Subject: Re: ARC for UNIX Message-ID: Date: Thu, 9-Oct-86 12:19:28 EDT Article-I.D.: ihlpf.772 Posted: Thu Oct 9 12:19:28 1986 Date-Received: Fri, 10-Oct-86 03:46:45 EDT References: Organization: AT&T Bell Labs, Naperville, IL Lines: 15 There is another problem with arc for unix I discovered while running it on a UNIXPC. The file arcunix.c contains a function called xrealloc(). This procedure calls realloc. Unfortunately, since realloc was #defined to be xrealloc in arc.h, this causes a recursive call indefinitely, resulting in process death from lack of swap space (on the Unix PC anyway). This occurs, for example, whenever trying to add more than one file at a time to the archive. The fix is simple: #undef realloc put this right before the realloc call in xrealloc. You may also want to do something like: extern char * realloc to avoid a warning message during compiling. Steve Spearman ihnp4!ihlpf!spear