10 Apr
2008
10 Apr
'08
6:39 p.m.
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;