]> granicus.if.org Git - graphviz/commit
ccomps process: replace 'sprintf' with 'agxbprint'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Jan 2023 23:52:55 +0000 (15:52 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 15 Jan 2023 17:51:26 +0000 (09:51 -0800)
commit46b471f6b6031697dbdde784d84574a678f5703c
tree996533abea0ceb31032361318a7124be2a91f8f3
parent820e29793a176d59644c15334076102d1a4afad2
ccomps process: replace 'sprintf' with 'agxbprint'

This replaces some error prone manual calculation with a dynamic buffer that
handles the calculation of needed allocations. This also potentially saves
memory in cases of short strings where an agxbuf can use inline storage.

Gitlab: #1950
cmd/tools/ccomps.c