diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-11-21 00:45:22 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-11-21 00:45:22 +0300 |
commit | 520a5b0926c6049a2e13f050bd21536a180b402b (patch) | |
tree | 41a8958bb7fbe72dae0554d3eae25d496a786691 /source | |
parent | 935ed8a53b8cc45ec1a13f2cab39e32e6a101acd (diff) |
Crasher fix.
If vertex groups had % in them, the function making the menu string would crash (in release only).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/buttons_editing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c index b6dfd29d62a..6b01e158e63 100644 --- a/source/blender/src/buttons_editing.c +++ b/source/blender/src/buttons_editing.c @@ -5370,7 +5370,7 @@ char *get_vertexgroup_menustr(Object *ob) qsort_ptr = MEM_callocN (defCount * sizeof (qsort_ptr[0]), "qsort_ptr"); for (index = 1, dg = ob->defbase.first; dg; index++, dg=dg->next) { - printed = snprintf (qsort_ptr[index - 1], sizeof (dg->name), dg->name); + printed = snprintf (qsort_ptr[index - 1], sizeof (dg->name), "%s", dg->name); snprintf (qsort_ptr[index - 1]+printed, 6+1, "%%x%d|", index); // +1 to move the \0 see above 999 max here too } |