diff options
author | Ken Hughes <khughes@pacific.edu> | 2008-05-05 04:42:18 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2008-05-05 04:42:18 +0400 |
commit | 17db1906c8f141f735f279c82b2d5cb95b8e78cc (patch) | |
tree | 9160ca19e1e371bb1f8abeb74fea1a49c554a271 /source | |
parent | da3b15be00c613875087c16b5afe62a1815d530c (diff) |
Fix potential buffer overflow (found by Cyril Brulebois).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/sequence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/sequence.c b/source/blender/src/sequence.c index 0da5775c9e3..b4d3a6c3ce2 100644 --- a/source/blender/src/sequence.c +++ b/source/blender/src/sequence.c @@ -1709,7 +1709,7 @@ static void do_build_seq_ibuf(Sequence * seq, TStripElem *se, int cfra, StripElem * s_elem = give_stripelem(seq, cfra); strncpy(name, seq->strip->dir, FILE_MAXDIR-1); - strncat(name, s_elem->name, FILE_MAXFILE); + strncat(name, s_elem->name, FILE_MAXFILE-1); BLI_convertstringcode(name, G.sce); BLI_convertstringframe(name, G.scene->r.cfra); if (!build_proxy_run) { |