[FFmpeg-cvslog] r13298 - trunk/libavfilter/graphparser.c

vitor subversion
Sat May 24 22:39:27 CEST 2008


Author: vitor
Date: Sat May 24 22:39:26 2008
New Revision: 13298

Log:
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


Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	(original)
+++ trunk/libavfilter/graphparser.c	Sat May 24 22:39:26 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-cvslog mailing list