diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-16 12:43:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-16 12:43:05 +0400 |
commit | 9a469b62cabf3d434de68c9e698970cc7f060136 (patch) | |
tree | 67e4734d9a1ed57e743a1115ceeeaafc68507c24 /source/blender/blenkernel/intern/dynamicpaint.c | |
parent | db4d342223e699407ad71f917a58d5d86a167073 (diff) |
replace strcpy with BLI_strncpy or memcpy when the size is known.
Diffstat (limited to 'source/blender/blenkernel/intern/dynamicpaint.c')
-rw-r--r-- | source/blender/blenkernel/intern/dynamicpaint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/dynamicpaint.c b/source/blender/blenkernel/intern/dynamicpaint.c index ed85e5b627b..38838fa8fca 100644 --- a/source/blender/blenkernel/intern/dynamicpaint.c +++ b/source/blender/blenkernel/intern/dynamicpaint.c @@ -397,7 +397,7 @@ void dynamicPaintSurface_updateType(struct DynamicPaintSurface *surface) } else { strcpy(surface->output_name, "dp_"); - strcpy(surface->output_name2, surface->output_name); + BLI_strncpy(surface->output_name2, surface->output_name, sizeof(surface->output_name2)); surface->flags &= ~MOD_DPAINT_ANTIALIAS; surface->depth_clamp = 0.0f; } |