diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-15 11:30:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-15 11:30:11 +0400 |
commit | b85056cbf4d0a0cc83db0120599318d368ea8f8c (patch) | |
tree | 249a5d282c0f82e0773cbbf885556ff5b3bdc9e7 /source/blender | |
parent | 19863a72688381d2ef3422d7c974054ffd618380 (diff) |
fix for error in own recent commit adding node undo pushes. (bad use of sizeof)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_node/node_header.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_header.c b/source/blender/editors/space_node/node_header.c index e17961b6c7c..5ab698cd415 100644 --- a/source/blender/editors/space_node/node_header.c +++ b/source/blender/editors/space_node/node_header.c @@ -100,7 +100,7 @@ static void do_node_add(bContext *C, bNodeTemplate *ntemp) /* once this is called from an operator, this should be removed */ if (node_new) { char undostr[BKE_UNDO_STR_MAX]; - BLI_snprintf(undostr, sizeof(BKE_UNDO_STR_MAX), "Add Node %s", nodeLabel(node_new)); + BLI_snprintf(undostr, sizeof(undostr), "Add Node %s", nodeLabel(node_new)); BKE_write_undo(C, undostr); } |