]> granicus.if.org Git - graphviz/commit
Render_Contour2: fix incorrect allocation calculation
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Aug 2021 20:53:12 +0000 (13:53 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 23 Aug 2021 14:53:43 +0000 (07:53 -0700)
commitd67c1e8d618abdc2047d505efd7ef20f22bba35d
tree27a2450de6e133f58fa25743fb487645068a5274
parent50353b28e0e1828af090f09d999b8225d1e312c6
Render_Contour2: fix incorrect allocation calculation

It is clear from surrounding code that this was attempting to allocate an array
of GLdouble *pointers*, not an array of GLdoubles. It is unlikely this would
have caused any noticeable issues as sizeof(GLdouble) is typically greater than
sizeof(GLdouble*), but nevertheless the calculation was incorrect. This change
not only corrects this, but uses the more appropriate calloc instead of malloc
for array allocation.
cmd/smyrna/polytess.c