stb_sprintf: Fix string length calc
Factor out string length computation into helper func, comment it a bit more, always use a limit to avoid 32b unsigned overflow, and avoid reading past the bounds of non-0-terminated strings given with specified precision. Fixes issue #966.
Showing
想要评论请 注册 或 登录