summaryrefslogtreecommitdiff
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-05 18:52:29 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-08 00:42:48 +0100
commite38eaf47491a864b2180d1ade87ed0ef39dd6d34 (patch)
treeeaf47cc5cd738a86e4e0f05f4657c7ea7114dbca /libavformat/hlsenc.c
parentb09ea67b40e342f5e4183e9ebc0c14801ecd218c (diff)
avformat/utils: Make ff_data_to_hex() zero-terminate the string
Most callers want it that way anyway. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index cfd0c036d1..1c2a556375 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -745,7 +745,6 @@ static int do_encrypt(AVFormatContext *s, VariantStream *vs)
memcpy(iv, hls->iv, sizeof(iv));
}
ff_data_to_hex(buf, iv, sizeof(iv), 0);
- buf[32] = '\0';
memcpy(hls->iv_string, buf, sizeof(hls->iv_string));
}