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'
This commit is contained in:
2011-09-15 12:26:48 +00:00
parent 9648c6016b
commit 0d355a8a2c
25 changed files with 43 additions and 45 deletions

View File

@@ -3371,10 +3371,10 @@ static void headerTranslation(TransInfo *t, float vec[3], char *str) {
if(chainlen)
sprintf(autoik, "AutoIK-Len: %d", chainlen);
else
strcpy(autoik, "");
autoik[0]= '\0';
}
else
strcpy(autoik, "");
autoik[0]= '\0';
if (t->con.mode & CON_APPLY) {
switch(t->num.idx_max) {