Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-06-23 12:18:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-06-23 12:18:14 +0400
commitee14cc198b2306f13b438577d565347e54c88938 (patch)
tree5909036fa4f7e7b61c704317935c1900e018e87b /source/blender/editors/space_time
parent5215e410c6e39971b79b84c1fbd77f7dc8833fcc (diff)
fix for timeline drawing with new cache visualization.
memcpy buffer overrun when the first frame wasnt 0.
Diffstat (limited to 'source/blender/editors/space_time')
-rw-r--r--source/blender/editors/space_time/space_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_time/space_time.c b/source/blender/editors/space_time/space_time.c
index 454dc6117ba..7928fc6284a 100644
--- a/source/blender/editors/space_time/space_time.c
+++ b/source/blender/editors/space_time/space_time.c
@@ -236,7 +236,7 @@ static void time_cache_refresh(const bContext *C, SpaceTime *stime, ARegion *ar)
}
}
/* update with final number of frames */
- stc->len = i*4;
+ stc->len = (i-stc->startframe)*4;
stc->array = MEM_mallocN(stc->len*2*sizeof(float), "SpaceTimeCache array");
memcpy(stc->array, array, stc->len*2*sizeof(float));