Use a format string for errmsg() of literal
Using the string literal in errmsg directly without a format string triggers warnings in clang under -Wformat-security. Use a simple format string containing just a reference to the string literal to avoid warnings and possibly hiding bugs.
Showing
想要评论请 注册 或 登录