replace sprintf usage with snprintf Even though this specific usage is safe, it is, arguably, not great to be using sprintf in year 2024. snprintf is portable enough this days. Thanks goes to OSX headers that warn about sprintf loudly enough to be noticed.