mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
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:
parent
855b705980
commit
47715fd1f7
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user