From: Matthew Fernandez Date: Wed, 24 Aug 2022 04:02:54 +0000 (-0700) Subject: use agxbbuf for dynamic 'Show_boxes' string construction X-Git-Tag: 6.0.1~24^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=312e6cf16dee89857048111fff8fb278db55c816;p=graphviz use agxbbuf for dynamic 'Show_boxes' string construction We have some recent evidence¹ people are using this debug feature. This change makes some allocations it does more robust (they now exit on failure) and abbreviates construction in a stack buffer and then duplication into a heap buffer into direct construction in a heap buffer. ¹ https://forum.graphviz.org/t/how-to-use-the-showboxes-attribute/1287 --- diff --git a/lib/common/postproc.c b/lib/common/postproc.c index bc712030d..205a404ae 100644 --- a/lib/common/postproc.c +++ b/lib/common/postproc.c @@ -8,6 +8,7 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ +#include #include #include #include