Revision: 17520
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17520
Author: theeth
Date: 2008-11-20 22:45:22 +0100 (Thu, 20 Nov 2008)
Log Message:
-----------
Crasher fix.
If vertex groups had % in them, the function making the menu string would crash
(in release only).
Modified Paths:
--------------
trunk/blender/source/blender/src/buttons_editing.c
Modified: trunk/blender/source/blender/src/buttons_editing.c
===================================================================
--- trunk/blender/source/blender/src/buttons_editing.c 2008-11-20 20:42:38 UTC
(rev 17519)
+++ trunk/blender/source/blender/src/buttons_editing.c 2008-11-20 21:45:22 UTC
(rev 17520)
@@ -5370,7 +5370,7 @@
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
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs