possibly incorrect function signatures in stb_sprintf
apache-hb opened this issue · comments
Elliot commented
Describe the bug
stbsp_vsnprintf and stbsp_snprintf have incorrect function signatures according to the C specification.
According to n3096 7.23.6.5 and 7.23.6.12 the second parameter to [v]snprintf should be of type size_t
, in stb_sprintf it is int
. Is this an intentional difference or should these be size_t's?