]> granicus.if.org Git - graphviz/commit
rewrite versionStr2Version to use strtoul
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 14 Apr 2021 03:04:36 +0000 (20:04 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 20 Apr 2021 14:49:55 +0000 (07:49 -0700)
commit5aa56175c4715700cc8bf9fecad7b27665c04379
tree93bf6cb6e17f190f5d1ff8d9dc11e23c221693c8
parentd88e7b26a9d6d4684a7fbc35ca67f021de3eddca
rewrite versionStr2Version to use strtoul

The atoi function has no ability to report failure. There is no advantage to
using it over the safer strto* functions. This change also removes a
-Wconversion warning.
plugin/core/gvrender_core_dot.c