From 5514201a4a34b942d768b5e1c39cf6f856eeb0ba Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 7 Sep 2022 17:27:49 -0700 Subject: [PATCH] tclpkg graphcmd: shrink a buffer Only 12 characters are needed to print a NUL terminated 32-bit integer. --- tclpkg/tcldot/tcldot-graphcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1