]> granicus.if.org Git - graphviz/commitdiff
Fix the use of a too small buffer
authorEmden R. Gansner <erg@gentoo.research.att.com>
Mon, 2 Sep 2013 22:52:52 +0000 (18:52 -0400)
committerEmden R. Gansner <erg@gentoo.research.att.com>
Mon, 2 Sep 2013 22:52:52 +0000 (18:52 -0400)
lib/common/shapes.c

index 76b2d9e3cca2fb3469b71b75c295061bfc54661c..bb5ea0f7b5f3c5a48688cc208f224571454d2a54 100644 (file)
@@ -495,7 +495,7 @@ static void Mcircle_hack(GVJ_t * job, node_t * n)
  */
 void round_corners(GVJ_t * job, pointf * AF, int sides, int style, int filled)
 {
-    pointf *B, C[4], *D, p0, p1;
+    pointf *B, C[5], *D, p0, p1;
     double rbconst, d, dx, dy, t;
     int i, seg, mode, shape;
     pointf* pts;