Skip to content

Commit

Permalink
avformat/url: Use size_t for len from strlen()
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed May 11, 2015
1 parent 28b7d7a commit 95efc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/url.c
Expand Up @@ -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);
Expand Down

0 comments on commit 95efc65

Please sign in to comment.