mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
10l: Forgot to consider the null byte at the end of the string when alloc'ing
Commited in SoC by Vitor Sessak on 2008-04-10 16:39:07 Originally committed as revision 13298 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d7ff229718
commit
2255026d53
@ -99,7 +99,7 @@ static void consume_whitespace(const char **buf)
|
||||
*/
|
||||
static char *consume_string(const char **buf)
|
||||
{
|
||||
char *out = av_malloc(strlen(*buf));
|
||||
char *out = av_malloc(strlen(*buf) + 1);
|
||||
const char *in = *buf;
|
||||
char *ret = out;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user