diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-29 14:04:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-29 14:04:54 +0400 |
commit | 9a3855e6554be195ea5cbae7eb23a8c56f39e1cb (patch) | |
tree | f360cf4f9bf5b53d023d51891eb29929b54ae870 /source/blender/editors/curve/editfont.c | |
parent | d0ec1b1caa7ad7048bcd23f58a0b26e548c8c551 (diff) |
Text3d: remove redundant call to wcslen
Diffstat (limited to 'source/blender/editors/curve/editfont.c')
-rw-r--r-- | source/blender/editors/curve/editfont.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c index 795dfc9d607..c89f79ba55d 100644 --- a/source/blender/editors/curve/editfont.c +++ b/source/blender/editors/curve/editfont.c @@ -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)); |