Commit 660b190a authored by vitor's avatar vitor

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13298 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 56586efc
......@@ -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;
......
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