diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/appdir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c index 018bb47403a..feed56f733d 100644 --- a/source/blender/blenkernel/intern/appdir.c +++ b/source/blender/blenkernel/intern/appdir.c @@ -1087,7 +1087,8 @@ static void tempdir_session_create(char *tempdir_session, CLOG_WARN(&LOG, "Could not generate a temp file name for '%s', falling back to '%s'", tmp_name, - tempdir_session); + tempdir); + BLI_strncpy(tempdir_session, tmp_name, tempdir_session_len); } MEM_freeN(tmp_name); |