15 lines
529 B
Plaintext
15 lines
529 B
Plaintext
$OpenBSD: patch-source_blender_src_usiblender_c,v 1.4 2007/05/25 12:19:14 steven Exp $
|
|
--- source/blender/src/usiblender.c.orig Mon Apr 16 20:32:47 2007
|
|
+++ source/blender/src/usiblender.c Sun May 20 14:53:12 2007
|
|
@@ -173,9 +173,7 @@ static void init_userdef_file(void)
|
|
}
|
|
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;
|