mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 09:59:50 +00:00
avformat/url: Use size_t for len from strlen()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 95efc65129
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a9f003b8ac
commit
b2d31dcf04
@ -68,7 +68,7 @@ int ff_url_join(char *str, int size, const char *proto,
|
||||
av_strlcatf(str, size, ":%d", port);
|
||||
if (fmt) {
|
||||
va_list vl;
|
||||
int len = strlen(str);
|
||||
size_t len = strlen(str);
|
||||
|
||||
va_start(vl, fmt);
|
||||
vsnprintf(str + len, size > len ? size - len : 0, fmt, vl);
|
||||
|
Loading…
Reference in New Issue
Block a user