Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-10-27 12:48:49 +0400
committerTon Roosendaal <ton@blender.org>2004-10-27 12:48:49 +0400
commit9719dc63e224c6fafab4ef18eae134e175d45ae7 (patch)
tree6f554fe38016ce8319673bcc77881c70368d7521 /source
parent369c5f03c941b9ffd331cf2d893768e4a611cc3e (diff)
bug #1681
Using a too short string for a file path (plugin) caused crash
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/buttons_shading.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c
index bee80ee6b13..b55a43f3820 100644
--- a/source/blender/src/buttons_shading.c
+++ b/source/blender/src/buttons_shading.c
@@ -226,7 +226,7 @@ int vergcband(const void *a1, const void *a2)
void save_env(char *name)
{
Tex *tex;
- char str[FILE_MAXFILE];
+ char str[FILE_MAXDIR+FILE_MAXFILE];
strcpy(str, name);
BLI_convertstringcode(str, G.sce, G.scene->r.cfra);
@@ -469,8 +469,7 @@ void do_texbuts(unsigned short event)
ScrArea *sa;
ID *id;
int nr;
-
- char *name, str[80];
+ char *name, str[FILE_MAXDIR+FILE_MAXFILE];
tex= G.buts->lockpoin;