m_option: fix printf format specifier
This commit is contained in:
1 parent
8f4bc16cd7
commit
e3f7d4f5ea
1 file changed
+2
-1
+2
-1
@@ -2354,7 +2354,8 @@ static int parse_obj_settings_list(struct mp_log *log, const m_option_t *opt,
|
||||
op = OP_NONE;
|
||||
else {
|
||||
char pre[80];
|
||||
snprintf(pre, sizeof(pre), "%.*s", strlen(opt->name) - 1, opt->name);
|
||||
snprintf(pre, sizeof(pre), "%.*s", (int)(strlen(opt->name) - 1),
|
||||
opt->name);
|
||||
mp_err(log, "Option %.*s: unknown postfix %.*s\n"
|
||||
"Supported postfixes are:\n"
|
||||
" %s-set\n"
|
||||
|
||||
Reference in new issue
Block a user