summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-24 12:00:56 +0100
committerwm4 <wm4@nowhere>2014-02-24 12:00:56 +0100
commite3f7d4f5ea67a74b2f47103974f11c35ad58d972 (patch)
tree54671509b6d62980f3912d125d63eeb47a96681b /options
parent8f4bc16cd785d60669eac5767350d43763f20dc9 (diff)
downloadmpv-e3f7d4f5ea67a74b2f47103974f11c35ad58d972.tar.bz2
mpv-e3f7d4f5ea67a74b2f47103974f11c35ad58d972.tar.xz
m_option: fix printf format specifier
Diffstat (limited to 'options')
-rw-r--r--options/m_option.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/options/m_option.c b/options/m_option.c
index 193d293638..2d34b59f9d 100644
--- a/options/m_option.c
+++ b/options/m_option.c
@@ -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"