svn merge ^/trunk/blender -r41226:41227 .
[blender.git] / source / blender / editors / sculpt_paint / sculpt_undo.c
index 9a974c638a38f6953f1233de015b93bd1a556fff..014cbff3e222fa8d618bc9080933431d8f83a760 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * ***** BEGIN GPL LICENSE BLOCK *****
  *
  * This program is free software; you can redistribute it and/or
@@ -39,6 +37,8 @@
 
 #include "BLI_math.h"
 #include "BLI_utildefines.h"
+#include "BLI_string.h"
+#include "BLI_listbase.h"
 #include "BLI_ghash.h"
 #include "BLI_threads.h"
 
@@ -262,7 +262,7 @@ SculptUndoNode *sculpt_undo_push_node(Object *ob, PBVHNode *node)
        }
 
        unode= MEM_callocN(sizeof(SculptUndoNode), "SculptUndoNode");
-       strcpy(unode->idname, ob->id.name);
+       BLI_strncpy(unode->idname, ob->id.name, sizeof(unode->idname));
        unode->node= node;
 
        BLI_pbvh_node_num_verts(ss->pbvh, node, &totvert, &allvert);