summaryrefslogtreecommitdiff
path: root/libavformat/librist.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2021-03-06 22:31:06 +0100
committerMarton Balint <cus@passwd.hu>2021-03-13 17:36:48 +0100
commit7b0832dea8fe266011e2891402e091562edbb6ba (patch)
tree6b53629e8956d784077db76fd7f66c7b95b9055f /libavformat/librist.c
parentdeffb5ddce5cc09ec1f29d2255276483d07b7725 (diff)
avformat/librist: simplify secret strlcpy
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/librist.c')
-rw-r--r--libavformat/librist.c2
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;