]> git.sesse.net Git - ffmpeg/commitdiff
10l: Forgot to consider the null byte at the end of the string when alloc'ing
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:39:26 +0000 (20:39 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:39:26 +0000 (20:39 +0000)
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

libavfilter/graphparser.c

index 2007b6241f3d93bf5534f21c2239627831ec173d..26c95519370ca03bfafa39423e3f39463740f7df 100644 (file)
@@ -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;