diff options
author | Martin Storsjö <martin@martin.st> | 2010-10-05 19:33:56 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-10-05 19:33:56 +0000 |
commit | eb99f179faf5b6c157d45805aeee72916342a6fa (patch) | |
tree | f1595d55db7afe23b69c15199b4c74db51c02572 /libavformat | |
parent | 5dd7f994c6414f7040f9386ec077f0d7cfe88717 (diff) | |
download | ffmpeg-eb99f179faf5b6c157d45805aeee72916342a6fa.tar.gz |
find_info_tag: Make sure the output buffer is null terminated
Originally committed as revision 25353 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 598551178c..a545a5d9f4 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3361,8 +3361,8 @@ int find_info_tag(char *arg, int arg_size, const char *tag1, const char *info) } p++; } - *q = '\0'; } + *q = '\0'; if (!strcmp(tag, tag1)) return 1; if (*p != '&') |