From eb99f179faf5b6c157d45805aeee72916342a6fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Tue, 5 Oct 2010 19:33:56 +0000 Subject: [PATCH] find_info_tag: Make sure the output buffer is null terminated Originally committed as revision 25353 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 5985511..a545a5d 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 != '&') -- 2.7.4