From 0bdd05e4f78f988c453763defac21fadee331f8a Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 6 Sep 2020 10:26:05 -0700 Subject: [PATCH] simplify xdot_points with agxbprint --- plugin/core/gvrender_core_dot.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/core/gvrender_core_dot.c b/plugin/core/gvrender_core_dot.c index 37ec8048b..8d820c7a9 100644 --- a/plugin/core/gvrender_core_dot.c +++ b/plugin/core/gvrender_core_dot.c @@ -155,12 +155,9 @@ static void xdot_num(agxbuf *xbuf, double v) static void xdot_points(GVJ_t *job, char c, pointf * A, int n) { emit_state_t emit_state = job->obj->emit_state; - char buf[BUFSIZ]; int i; - agxbputc(xbufs[emit_state], c); - sprintf(buf, " %d ", n); - agxbput(xbufs[emit_state], buf); + agxbprint(xbufs[emit_state], "%c %d ", c, n); for (i = 0; i < n; i++) xdot_point(xbufs[emit_state], A[i]); } -- 2.40.0