Fix -Werror=format-security errors

Fixup a couple of errors when compilng with -Werror=format-security.