mplayer: m_option: fix clang -Wformat compiler warning

Code was using %d format instead %zd to print size_t data.
This commit is contained in:
Stefano Pigozzi 2013-09-14 20:39:14 +02:00
parent 855b705980
commit 47715fd1f7
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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));
}
}