Text3d: remove redundant call to wcslen

This commit is contained in:
Campbell Barton 2013-12-29 21:04:54 +11:00
parent d0ec1b1caa
commit 9a3855e655
1 changed files with 1 additions and 3 deletions

View File

@ -1430,9 +1430,7 @@ void make_editText(Object *obedit)
}
/* Convert the original text to wchar_t */
BLI_strncpy_wchar_from_utf8(ef->textbuf, cu->str, MAXTEXT + 4); /* length is bogus */
cu->len = wcslen(ef->textbuf);
cu->len = BLI_strncpy_wchar_from_utf8(ef->textbuf, cu->str, MAXTEXT + 4); /* length is bogus */
memcpy(ef->textbufinfo, cu->strinfo, (cu->len) * sizeof(CharInfo));