From 47715fd1f7ec599f655a46594e2d12a0e5290303 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 14 Sep 2013 20:39:14 +0200 Subject: mplayer: m_option: fix clang -Wformat compiler warning Code was using %d format instead %zd to print size_t data. --- mpvcore/m_option.c | 2 +- mpvcore/mplayer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mpvcore') 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)); } } -- cgit v1.2.3