]> granicus.if.org Git - graphviz/commitdiff
Fix error messages to use CmdName rather than hard-coded and incorrect "gc".
authorEmden Gansner <emdenrg@google.com>
Tue, 6 Jun 2017 17:21:58 +0000 (13:21 -0400)
committerEmden Gansner <emdenrg@google.com>
Tue, 6 Jun 2017 17:21:58 +0000 (13:21 -0400)
cmd/tools/tred.c

index 894ad142f207ae6c504172e8dbf25c781d173e67..f0794b6bb0616788f484569aaa1a0d9e52aab06a 100644 (file)
@@ -7,8 +7,6 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors: See CVS logs. Details at http://www.graphviz.org/
  *************************************************************************/
 
 
@@ -89,14 +87,14 @@ static void push(estack_t* sp, Agedge_t * ep, nodeinfo_t* ninfo)
        if (sp->Stk.curblk->next == NULL) {
            blk_t *bp = NEW(blk_t);
            if (bp == 0) {
-               fprintf(stderr, "gc: Out of memory\n");
+               fprintf(stderr, "%s: Out of memory\n", CmdName);
                exit(1);
            }
            bp->prev = sp->Stk.curblk;
            bp->next = NULL;
            bp->data = N_NEW(BIGBUF, Agedge_t *);
            if (bp->data == 0) {
-               fprintf(stderr, "gc: Out of memory\n");
+               fprintf(stderr, "%s: Out of memory\n", CmdName);
                exit(1);
            }
            bp->endp = bp->data + BIGBUF;