]> granicus.if.org Git - graphviz/commit
remove cached allocation in userout
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Jan 2021 22:49:52 +0000 (14:49 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Jan 2021 18:24:57 +0000 (10:24 -0800)
commit24ff810ab669287952c8fff7faf65049141ea49c
tree1b62c01fd792c684ef5e7e2db3d1aa6e0e3f1ea1
parentfe3f9411d2c59b463ab1b64eecfd19f2db55d2fc
remove cached allocation in userout

We can avoid using a static pointer and avoid the allocation loop in this
function by simply leveraging the C99 semantics of vsnprintf. The result is more
readable code. Closes #1924.
CHANGELOG.md
lib/cgraph/agerror.c