Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-09-15 11:30:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-15 11:30:11 +0400
commitb85056cbf4d0a0cc83db0120599318d368ea8f8c (patch)
tree249a5d282c0f82e0773cbbf885556ff5b3bdc9e7 /source
parent19863a72688381d2ef3422d7c974054ffd618380 (diff)
fix for error in own recent commit adding node undo pushes. (bad use of sizeof)
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_node/node_header.c2
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);
}