[FFmpeg-soc] [soc]: r2110 - libavfilter/graphparser.c

vitor subversion at mplayerhq.hu
Thu Apr 10 18:39:07 CEST 2008


Author: vitor
Date: Thu Apr 10 18:39:07 2008
New Revision: 2110

Log:
10l: Forgot to consider the null byte at the end of the string when alloc'ing

Modified:
   libavfilter/graphparser.c

Modified: libavfilter/graphparser.c
==============================================================================
--- libavfilter/graphparser.c	(original)
+++ libavfilter/graphparser.c	Thu Apr 10 18:39:07 2008
@@ -99,7 +99,7 @@ static void consume_whitespace(const cha
  */
 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;
 



More information about the FFmpeg-soc mailing list