2006-07-26 02:45:27 -04:00
|
|
|
$OpenBSD: patch-source_blender_src_usiblender_c,v 1.3 2006/07/26 06:45:27 steven Exp $
|
|
|
|
--- source/blender/src/usiblender.c.orig Wed Jul 5 11:35:05 2006
|
|
|
|
+++ source/blender/src/usiblender.c Fri Jul 21 16:51:11 2006
|
|
|
|
@@ -162,9 +162,7 @@ static void init_userdef_file(void)
|
2005-11-24 17:22:56 -05:00
|
|
|
}
|
|
|
|
if(U.mixbufsize==0) U.mixbufsize= 2048;
|
|
|
|
if (BLI_streq(U.tempdir, "/")) {
|
|
|
|
- char *tmp= getenv("TEMP");
|
|
|
|
-
|
|
|
|
- strcpy(U.tempdir, tmp?tmp:"/tmp/");
|
|
|
|
+ strlcpy(U.tempdir, BLI_gethome(), sizeof(U.tempdir));
|
|
|
|
}
|
|
|
|
if (U.savetime <= 0) {
|
|
|
|
U.savetime = 1;
|