openbsd-ports/graphics/blender/patches/patch-source_blender_src_usiblender_c
2006-07-26 06:45:27 +00:00

15 lines
529 B
Plaintext

$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)
}
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;