mirror of https://github.com/mpv-player/mpv
m_option: fix printf format specifier
This commit is contained in:
parent
8f4bc16cd7
commit
e3f7d4f5ea
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue