1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/url: Use size_t for len from strlen()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-05-11 03:50:01 +02:00
parent 28b7d7a36d
commit 95efc65129

View File

@ -68,7 +68,7 @@ int ff_url_join(char *str, int size, const char *proto,
av_strlcatf(str, size, ":%d", port); av_strlcatf(str, size, ":%d", port);
if (fmt) { if (fmt) {
va_list vl; va_list vl;
int len = strlen(str); size_t len = strlen(str);
va_start(vl, fmt); va_start(vl, fmt);
vsnprintf(str + len, size > len ? size - len : 0, fmt, vl); vsnprintf(str + len, size > len ? size - len : 0, fmt, vl);