From 6bdb5e75cea1b57c0f1426ca49641d2e1e2ffefe Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 18 Apr 2011 15:20:19 +0000 Subject: fix [#27015] RNA Bug: Unpacking sounds with a long ID name fails: sound ID length wrong?! also fix for OBJECT_OT_proxy_make and RENDER_OT_render using incorrect lengths for ID names. --- source/blender/editors/sound/sound_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/sound') diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c index 74dbb8f6d12..7a5495208bf 100644 --- a/source/blender/editors/sound/sound_ops.c +++ b/source/blender/editors/sound/sound_ops.c @@ -276,7 +276,7 @@ static void SOUND_OT_unpack(wmOperatorType *ot) /* properties */ RNA_def_enum(ot->srna, "method", unpack_method_items, PF_USE_LOCAL, "Method", "How to unpack."); - RNA_def_string(ot->srna, "id", "", 21, "Sound Name", "Sound datablock name to unpack."); /* XXX, weark!, will fail with library, name collisions */ + RNA_def_string(ot->srna, "id", "", sizeof(((ID *)NULL)->name)-2, "Sound Name", "Sound datablock name to unpack."); /* XXX, weark!, will fail with library, name collisions */ } /* ******************************************************* */ -- cgit v1.2.3