git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
10l: Forgot to consider the null byte at the end of the string when alloc'ing
[ffmpeg.git]
/
libavfilter
/
graphparser.c
diff --git
a/libavfilter/graphparser.c
b/libavfilter/graphparser.c
index
2007b62
..
26c9551
100644
(file)
--- 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;