openbsd-ports/graphics/blender/patches/patch-source_blender_src_usiblender_c

15 lines
529 B
Plaintext
Raw Normal View History

$OpenBSD: patch-source_blender_src_usiblender_c,v 1.2 2006/06/06 12:36:49 steven Exp $
--- source/blender/src/usiblender.c.orig Wed Nov 23 17:33:19 2005
+++ source/blender/src/usiblender.c Tue Jan 3 16:03:52 2006
@@ -151,9 +151,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;