GPencil: Replace strcpy by BLI_strncpy

This commit is contained in:
Antonioya
2016-08-29 21:55:02 +02:00
parent 5c04b4fdfb
commit fa092da377

View File

@@ -357,7 +357,7 @@ static bool view3d_ruler_to_gpencil(bContext *C, RulerInfo *ruler_info)
gps->flag = GP_STROKE_3DSPACE;
gps->thickness = 3;
/* assign color to stroke */
strcpy(gps->colorname, palcolor->info);
BLI_strncpy(gps->colorname, palcolor->info, sizeof(gps->colorname));
gps->palcolor = palcolor;
BLI_addtail(&gpf->strokes, gps);
changed = true;