Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-23 16:49:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-23 16:49:30 +0400
commit3ff3d1bc0fa6979d0745dbd7526cbb5c35c1fcbf (patch)
tree99df5ec67111abede3cb2e29b469bb7a1ff2b3ae /source/blender/blenloader
parenta5bc02194345de1eb21f843b73ce24799677aea1 (diff)
replace use of strcat() where the string offset is known.
also correct bad logic with converting a textblock to 3d-text, bytes-vs-number of chars wasn't handled right.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/writefile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index dd4361be1ff..e170107713c 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -1660,8 +1660,8 @@ static void write_curves(WriteData *wd, ListBase *idbase)
if (cu->vfont) {
/* TODO, sort out 'cu->len', in editmode its character, object mode its bytes */
- int len_bytes;
- int len_chars = BLI_strlen_utf8_ex(cu->str, &len_bytes);
+ size_t len_bytes;
+ size_t len_chars = BLI_strlen_utf8_ex(cu->str, &len_bytes);
writedata(wd, DATA, len_bytes + 1, cu->str);
writestruct(wd, DATA, "CharInfo", len_chars + 1, cu->strinfo);