diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-15 16:26:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-15 16:26:48 +0400 |
commit | 0d355a8a2ccaeb54a1f723fd5adacec76d08c921 (patch) | |
tree | ff3b24f061960689c8fea73e074594f2603bf159 /source/creator | |
parent | 9648c6016b35a72aa23395f5d200e342df16490b (diff) |
replace BLI_strncpy with BLI_strncpy_utf8 where input isnt ensured to be valid.
also replace strcpy's which copy using "" with str[0]='\0'
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 264b4fc6208..91c2d74dc26 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -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)); } } } |