From: Matthew Fernandez Date: Sun, 6 Sep 2020 17:24:22 +0000 (-0700) Subject: simplify xdot_str_xbuf with agxbprint X-Git-Tag: 2.46.0~20^2^2~77^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c0cfaf3009cc1926b73dcca0950faf8e389cd48;p=graphviz simplify xdot_str_xbuf with agxbprint --- 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)