diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-14 18:43:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-14 18:43:11 +0400 |
commit | 02b24e655bdb2de67987c0332c78f16d0f557e48 (patch) | |
tree | aa74d6321e2cbe6ea6a38dc1198f01eeecec9193 /source/blender/imbuf | |
parent | 181104261d8b1d95744ebdf731a93646b6326aed (diff) |
fix for bug where changing movie filepaths would reset the strip length.
also fixed possible & unlikely buffer overflow.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/anim_movie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/anim_movie.c b/source/blender/imbuf/intern/anim_movie.c index 919b0eb0c29..8b0104fcdca 100644 --- a/source/blender/imbuf/intern/anim_movie.c +++ b/source/blender/imbuf/intern/anim_movie.c @@ -355,7 +355,7 @@ struct anim * IMB_open_anim( const char * name, int ib_flags) { anim = (struct anim*)MEM_callocN(sizeof(struct anim), "anim struct"); if (anim != NULL) { - strcpy(anim->name, name); /* fixme: possible buffer overflow here? */ + BLI_strncpy(anim->name, name, sizeof(anim->name)); anim->ib_flags = ib_flags; } return(anim); |