1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-14 22:22:59 +02:00

find_info_tag: Make sure the output buffer is null terminated

Originally committed as revision 25353 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Martin Storsjö 2010-10-05 19:33:56 +00:00
parent 5dd7f994c6
commit eb99f179fa

@ -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 != '&')