forked from bartvdbraak/blender
removed some warnings
This commit is contained in:
parent
8b32ad784b
commit
13fe65cf46
@ -416,7 +416,7 @@ void *BLI_pointer_from_int(int val);
|
||||
* @param member The name of a member field of @a strct
|
||||
* @retval The offset in bytes of @a member within @a strct
|
||||
*/
|
||||
#define BLI_STRUCT_OFFSET(strct, member) ((int) &((strct*) 0)->member)
|
||||
#define BLI_STRUCT_OFFSET(strct, member) ((int)(intptr_t) &((strct*) 0)->member)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -508,7 +508,7 @@ void poselib_rename_pose (Object *ob)
|
||||
if (marker == NULL) return;
|
||||
|
||||
/* get name of pose */
|
||||
sprintf(name, marker->name);
|
||||
strncpy(name, marker->name, sizeof(name));
|
||||
if (sbutton(name, 0, sizeof(name)-1, "Name: ") == 0)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user