diff options
author | Marton Balint <cus@passwd.hu> | 2021-03-06 22:31:06 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2021-03-13 17:36:48 +0100 |
commit | 7b0832dea8fe266011e2891402e091562edbb6ba (patch) | |
tree | 6b53629e8956d784077db76fd7f66c7b95b9055f | |
parent | deffb5ddce5cc09ec1f29d2255276483d07b7725 (diff) | |
download | ffmpeg-7b0832dea8fe266011e2891402e091562edbb6ba.tar.gz |
avformat/librist: simplify secret strlcpy
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavformat/librist.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |