replace BLI_strncpy with BLI_strncpy_utf8 where input isnt ensured to be valid.
[blender.git] / source / creator / creator.c
index 264b4fc..91c2d74 100644 (file)
@@ -560,7 +560,7 @@ static int set_engine(int argc, const char **argv, void *data)
                                RenderData *rd = &scene->r;
 
                                if(BLI_findstring(&R_engines, argv[1], offsetof(RenderEngineType, idname))) {
-                                       BLI_strncpy(rd->engine, argv[1], sizeof(rd->engine));
+                                       BLI_strncpy_utf8(rd->engine, argv[1], sizeof(rd->engine));
                                }
                        }
                }