[soc]: r2110 - libavfilter/graphparser.c
10 Apr
2008
10 Apr
'08
4: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;
6579
Age (days ago)
6579
Last active (days ago)
0 comments
1 participants
participants (1)
-
vitor