From: Matthew Fernandez Date: Thu, 8 Sep 2022 00:27:49 +0000 (-0700) Subject: tclpkg graphcmd: shrink a buffer X-Git-Tag: 6.0.2~7^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5514201a4a34b942d768b5e1c39cf6f856eeb0ba;p=graphviz tclpkg graphcmd: shrink a buffer Only 12 characters are needed to print a NUL terminated 32-bit integer. --- diff --git a/tclpkg/tcldot/tcldot-graphcmd.c b/tclpkg/tcldot/tcldot-graphcmd.c index 85b463c27..cfe2218f5 100644 --- a/tclpkg/tcldot/tcldot-graphcmd.c +++ b/tclpkg/tcldot/tcldot-graphcmd.c @@ -27,7 +27,7 @@ int graphcmd(ClientData clientData, Tcl_Interp * interp, gctx_t *gctx = (gctx_t *)clientData; ictx_t *ictx = gctx->ictx; Agsym_t *a; - char buf[256], **argv2; + char buf[12], **argv2; int i, j, argc2; GVC_t *gvc = ictx->gvc; GVJ_t *job = gvc->job;