find_info_tag: Make sure the output buffer is null terminated

Originally committed as revision 25353 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Martin Storsjö 14 years ago
parent 5dd7f994c6
commit eb99f179fa
  1. 2
      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 != '&')

Loading…
Cancel
Save