diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-08-25 14:27:04 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-08-25 17:30:08 +0300 |
commit | 27bdc1a984aca8b8dbe6f5390ca9e38ad2e58bfc (patch) | |
tree | 193cf890e2529c6de73bf7fb9c2e3152d32a05e3 /source/blender/blenkernel/intern/object.c | |
parent | f4b65577ffe96713e1c4893113e6aa03632778e3 (diff) |
Preemptive fix for search-buffer size issues
Forgot to increase the size of the string buffer in b88d8916e44f998c4f0bc397b29b0d6ff0f011e9
While this wouldn't have caused problems in most cases (since most modifier names
are short), in the rare event that a long modifier name exists, the buffer may have
ended up being truncated prematurely, causing the wrong FCurves to get matched.
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 0af7a3215a8..63a66de28dd 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -4018,7 +4018,7 @@ bool BKE_object_modifier_use_time(Object *ob, ModifierData *md) AnimData *adt = ob->adt; FCurve *fcu; - char pattern[MAX_NAME + 10]; + char pattern[MAX_NAME + 16]; BLI_snprintf(pattern, sizeof(pattern), "modifiers[\"%s\"]", md->name); /* action - check for F-Curves with paths containing 'modifiers[' */ |