summaryrefslogtreecommitdiff
path: root/libavfilter/graphparser.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-24 20:39:26 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-24 20:39:26 +0000
commit2255026d53e11bd156985867efa65c3d08e9fe99 (patch)
tree9ee3476598fd7c8105258cc0897b768e190b8a05 /libavfilter/graphparser.c
parentd7ff2297184e455cca90cc830d1a8be2bb6f0f2b (diff)
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
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r--libavfilter/graphparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 2007b6241f..26c9551937 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -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;