diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-05 18:52:29 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-08 00:42:48 +0100 |
commit | e38eaf47491a864b2180d1ade87ed0ef39dd6d34 (patch) | |
tree | eaf47cc5cd738a86e4e0f05f4657c7ea7114dbca /libavformat/movenc.c | |
parent | b09ea67b40e342f5e4183e9ebc0c14801ecd218c (diff) | |
download | ffmpeg-e38eaf47491a864b2180d1ade87ed0ef39dd6d34.tar.gz |
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/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 38ff90833a..0f912dd012 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -4290,7 +4290,6 @@ static void param_write_hex(AVIOContext *pb, const char *name, const uint8_t *va char buf[150]; len = FFMIN(sizeof(buf) / 2 - 1, len); ff_data_to_hex(buf, value, len, 0); - buf[2 * len] = '\0'; avio_printf(pb, "<param name=\"%s\" value=\"%s\" valuetype=\"data\"/>\n", name, buf); } |