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
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-12-28 18:08:36 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-12-28 18:09:06 +0300
commit6f1c44e61180a5551a874ad382ff52ad664ada1c (patch)
tree358704be66b55ea16aa0f8cd273e01e2b0f4a883 /source/blender/editors/sculpt_paint
parent1a246afe0330546a9fb526558d24b47c69e678d4 (diff)
Some fixes from coverity (only one really nasty, in paint_proj).
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 4e85d89ab4b..25cdc1bb9ab 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -5730,7 +5730,7 @@ static int texture_paint_add_texture_paint_slot_invoke(bContext *C, wmOperator *
BLI_assert(type != -1);
/* take the second letter to avoid the ID identifier */
- BLI_snprintf(imagename, FILE_MAX, "%s %s", &ma->id.name[2], layer_type_items[type].name);
+ BLI_snprintf(imagename, sizeof(imagename), "%s %s", &ma->id.name[2], layer_type_items[type].name);
RNA_string_set(op->ptr, "name", imagename);
return WM_operator_props_dialog_popup(C, op, 15 * UI_UNIT_X, 5 * UI_UNIT_Y);