From 1da4b0ea694b9ec507e835eeed0c0a25e5bbb0b4 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 21 Nov 2020 21:57:26 -0800 Subject: [PATCH] remove an unnecessary intermediate buffer --- lib/fdpgen/layout.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/fdpgen/layout.c b/lib/fdpgen/layout.c index d52372949..cba556ef8 100644 --- a/lib/fdpgen/layout.c +++ b/lib/fdpgen/layout.c @@ -421,15 +421,14 @@ static graph_t *deriveGraph(graph_t * g, layout_info * infop) graph_t *dg; node_t *dn; graph_t *subg; - char name[100]; bport_t *pp; node_t *n; edge_t *de; int i, id = 0; - sprintf(name, "_dg_%d", infop->gid++); if (Verbose >= 2) - fprintf(stderr, "derive graph %s of %s\n", name, agnameof(g)); + fprintf(stderr, "derive graph _dg_%d of %s\n", infop->gid, agnameof(g)); + infop->gid++; dg = agopen("derived", Agstrictdirected,NIL(Agdisc_t *)); agbindrec(dg, "Agraphinfo_t", sizeof(Agraphinfo_t), TRUE); -- 2.50.0