diff options
author | Ton Roosendaal <ton@blender.org> | 2007-01-18 23:06:48 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-01-18 23:06:48 +0300 |
commit | 719964ea8eb947949d035007ff1b612a0fb81da6 (patch) | |
tree | 0cac8fa5437dad4cf915d9f00f611e19e8310e23 /source/blender/src/usiblender.c | |
parent | a1cb195343cc3803e7cb18b4a8dd9d28218ea62c (diff) |
Bugfix, irc reported
Node shaders, Texture Node, without input connected it did not default to
use "orco" anymore. Was caused by commits that cleaned up render code.
Diffstat (limited to 'source/blender/src/usiblender.c')
-rw-r--r-- | source/blender/src/usiblender.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c index 037695b4761..9568bc57bc6 100644 --- a/source/blender/src/usiblender.c +++ b/source/blender/src/usiblender.c @@ -529,17 +529,17 @@ static void get_autosave_location(char buf[FILE_MAXDIR+FILE_MAXFILE]) void BIF_read_autosavefile(void) { - char tstr[FILE_MAXDIR+FILE_MAXFILE], scestr[FILE_MAXDIR]; + char tstr[FILE_MAX], scestr[FILE_MAX]; int save_over; - strcpy(scestr, G.sce); /* temporal store */ + BLI_strncpy(scestr, G.sce, FILE_MAX); /* temporal store */ get_autosave_location(tstr); save_over = G.save_over; BKE_read_file(tstr, NULL); G.save_over = save_over; - strcpy(G.sce, scestr); + BLI_strncpy(G.sce, scestr, FILE_MAX); } /* free strings of open recent files */ |