Merging r41120 through from trunk r41139 into soc-2011-tomato
[blender.git] / source / blender / editors / object / object_constraint.c
index 53ddaa4..3d0ba2a 100644 (file)
@@ -246,7 +246,7 @@ static void set_constraint_nth_target (bConstraint *con, Object *target, const c
                for (ct=targets.first, i=0; ct; ct= ct->next, i++) {
                        if (i == index) {
                                ct->tar= target;
-                               strcpy(ct->subtarget, subtarget);
+                               BLI_strncpy(ct->subtarget, subtarget, sizeof(ct->subtarget));
                                break;
                        }
                }