diff options
-rw-r--r-- | libavfilter/graphparser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 2007b6241f..26c9551937 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -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; |