summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-09-14 20:39:14 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-09-14 20:49:55 +0200
commit47715fd1f7ec599f655a46594e2d12a0e5290303 (patch)
tree6593b888786ff6ec93fa1b3585c5f59725d5fe7f /mpvcore
parent855b7059800018e5fe5a0f8af8e7d85152883775 (diff)
downloadmpv-47715fd1f7ec599f655a46594e2d12a0e5290303.tar.bz2
mpv-47715fd1f7ec599f655a46594e2d12a0e5290303.tar.xz
mplayer: m_option: fix clang -Wformat compiler warning
Code was using %d format instead %zd to print size_t data.
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/m_option.c2
-rw-r--r--mpvcore/mplayer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mpvcore/m_option.c b/mpvcore/m_option.c
index 8b33d56dc5..acecd990d7 100644
--- a/mpvcore/m_option.c
+++ b/mpvcore/m_option.c
@@ -2409,7 +2409,7 @@ static void append_param(char **res, char *param)
*res = talloc_strdup_append(*res, param);
} else {
// Simple escaping: %BYTECOUNT%STRING
- *res = talloc_asprintf_append(*res, "%%%d%%%s", strlen(param), param);
+ *res = talloc_asprintf_append(*res, "%%%zd%%%s", strlen(param), param);
}
}
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c
index 9fc1c0f6c5..c8991fb64e 100644
--- a/mpvcore/mplayer.c
+++ b/mpvcore/mplayer.c
@@ -4213,7 +4213,7 @@ static void print_resolve_contents(struct mp_log *log,
if (res->subs[n]->lang)
mp_msg_log(log, MSGL_V, " lang: %s\n", res->subs[n]->lang);
if (res->subs[n]->data) {
- mp_msg_log(log, MSGL_V, " data: %d bytes\n",
+ mp_msg_log(log, MSGL_V, " data: %zd bytes\n",
strlen(res->subs[n]->data));
}
}