- added format patch (fixes build with -Werror=format-security, adds some bounds checking just in case)