]> granicus.if.org Git - graphviz/commitdiff
tclpkg graphcmd: shrink a buffer
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 8 Sep 2022 00:27:49 +0000 (17:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 10 Oct 2022 14:59:07 +0000 (07:59 -0700)
Only 12 characters are needed to print a NUL terminated 32-bit integer.

tclpkg/tcldot/tcldot-graphcmd.c

index 85b463c27b9222b98e1673753557b5c69bd21f67..cfe2218f5305e000f588cbf64d4e4cda21fc76a4 100644 (file)
@@ -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;