m_option: fix printf format specifier

This commit is contained in:
wm4 2014-02-24 12:00:56 +01:00
parent 8f4bc16cd7
commit e3f7d4f5ea
1 changed files with 2 additions and 1 deletions

View File

@ -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"