Commit eb99f179 authored by Martin Storsjö's avatar Martin Storsjö

find_info_tag: Make sure the output buffer is null terminated

Originally committed as revision 25353 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5dd7f994
......@@ -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 != '&')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment