Message ID | 20210306232619.5963-4-cus@passwd.hu |
---|---|
State | Accepted |
Commit | 7b0832dea8fe266011e2891402e091562edbb6ba |
Headers | show |
Series | [FFmpeg-devel,1/7] libavformat: add librist protocol | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
diff --git a/libavformat/librist.c b/libavformat/librist.c index 3f74521cb4..2fb3162f86 100644 --- a/libavformat/librist.c +++ b/libavformat/librist.c @@ -158,7 +158,7 @@ static int librist_open(URLContext *h, const char *uri, int flags) } if (s->secret && peer_config->secret[0] == 0) - av_strlcpy(peer_config->secret, s->secret, FFMIN(RIST_MAX_STRING_SHORT - 1, strlen(s->secret))); + av_strlcpy(peer_config->secret, s->secret, RIST_MAX_STRING_SHORT); if (s->secret && (s->encryption == 128 || s->encryption == 256)) peer_config->key_size = s->encryption;
Signed-off-by: Marton Balint <cus@passwd.hu> --- libavformat/librist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)