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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-10-21 13:32:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-10-21 13:32:18 +0400
commitbacfc9eb91f10871a2ba9c3b35e48c3895dffac3 (patch)
tree7332eb5683a36a60604f0ad31fbbd762f4c03aba /source/blender/src/header_filesel.c
parent3a04520686c19074814c7de363f208459c69dfd1 (diff)
fix for crash's in file selector.
- on unix BLI_diskfree was only using 100 chars for the dir name, and not checking if the name given was longer, increased to FILE_MAXDIR (160) and added a check, return -1 if its too long. The file selector only allowed 80 chars to be typed into the directory entry. Made the file selector check that the path is less then FILE_MIXDIR, if you try and enter a path thats longer it will tell you that the path is too long, before it was writing into other memory and crashing.
Diffstat (limited to 'source/blender/src/header_filesel.c')
-rw-r--r--source/blender/src/header_filesel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/header_filesel.c b/source/blender/src/header_filesel.c
index 8ef4ed9dc24..999fa2733af 100644
--- a/source/blender/src/header_filesel.c
+++ b/source/blender/src/header_filesel.c
@@ -188,7 +188,7 @@ void file_buttons(void)
BIF_DrawString(G.font, naam, 0);
}
-
+
/* always do as last */
curarea->headbutlen= xco+2*XIC;
}