fixing compilation with `-Werror=format-security` enabled
Merge pull request #1225 from apavlenko:fix_format_security