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/gameengine/BlenderRoutines
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/gameengine/BlenderRoutines')
-rw-r--r--source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
index dbb7cbc1816..bb4c3fd2cbc 100644
--- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
+++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
@@ -384,9 +384,8 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c
if (!bfd)
{
// just add "//" in front of it
- char temppath[242];
- strcpy(temppath, "//");
- strcat(temppath, basedpath);
+ char temppath[FILE_MAX] = "//";
+ BLI_strncpy(temppath + 2, basedpath, FILE_MAX - 2);
BLI_path_abs(temppath, pathname);
bfd = load_game_data(temppath);