summaryrefslogtreecommitdiff
path: root/libavformat/omadec.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/omadec.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/omadec.c')
-rw-r--r--libavformat/omadec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/omadec.c b/libavformat/omadec.c
index a727cc4d66..4c418a5ff2 100644
--- a/libavformat/omadec.c
+++ b/libavformat/omadec.c
@@ -108,7 +108,6 @@ static void hex_log(AVFormatContext *s, int level,
if (av_log_get_level() < level)
return;
ff_data_to_hex(buf, value, len, 1);
- buf[len << 1] = '\0';
av_log(s, level, "%s: %s\n", name, buf);
}