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-05-25 09:56:31 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-05-25 09:56:31 +0400
commitc9ac1cc9862730f6e20563fc034d825c9a6aff04 (patch)
treeff859c4b8273308ce818c2f2cb17bef1c72b5e9a /source/blender/editors/armature
parentc61e25e6ac37296c13c0949b8363cc168125d750 (diff)
fix for 2 warnings & better error checking for the thumbnail loading.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/poselib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/armature/poselib.c b/source/blender/editors/armature/poselib.c
index 71033fbe3ec..613a3bd99db 100644
--- a/source/blender/editors/armature/poselib.c
+++ b/source/blender/editors/armature/poselib.c
@@ -854,7 +854,7 @@ static void poselib_preview_apply (bContext *C, wmOperator *op)
/* get search-string */
index= pld->search_cursor;
- if (IN_RANGE(index, 0, 64)) {
+ if (index >= 0 && index <= 64) {
memcpy(&tempstr[0], &pld->searchstr[0], index);
tempstr[index]= '|';
memcpy(&tempstr[index+1], &pld->searchstr[index], 64-index);