avformat/url: Use size_t for len from strlen()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 11 May 2015 01:50:01 +0000 (03:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 11 May 2015 01:50:01 +0000 (03:50 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/url.c

index 3a2c78b..596fb49 100644 (file)
@@ -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);