Merging r58475 through r58700 from trunk into soc-2013-depsgraph_mt
[blender.git] / source / gameengine / GamePlayer / ghost / GPG_ghost.cpp
index 46e23529be4f9a4a7b28a086d9b3c1c471a178b8..d4f4d4e0e7f82e9ddd8bffdee19c50a7fc816976 100644 (file)
@@ -815,9 +815,8 @@ int main(int argc, char** argv)
 
                                                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);