From 8c0cfaf3009cc1926b73dcca0950faf8e389cd48 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 6 Sep 2020 10:24:22 -0700 Subject: [PATCH] simplify xdot_str_xbuf with agxbprint --- plugin/core/gvrender_core_dot.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugin/core/gvrender_core_dot.c b/plugin/core/gvrender_core_dot.c index 1e72e5523..37ec8048b 100644 --- a/plugin/core/gvrender_core_dot.c +++ b/plugin/core/gvrender_core_dot.c @@ -84,12 +84,7 @@ static xdot_state_t* xd; static void xdot_str_xbuf (agxbuf* xb, char* pfx, char* s) { - char buf[BUFSIZ]; - - sprintf (buf, "%s%d -", pfx, (int)strlen(s)); - agxbput(xb, buf); - agxbput(xb, s); - agxbputc(xb, ' '); + agxbprint (xb, "%s%d -%s ", pfx, (int)strlen(s), s); } static void xdot_str (GVJ_t *job, char* pfx, char* s) -- 2.40.0