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:
authorTon Roosendaal <ton@blender.org>2006-08-09 14:00:27 +0400
committerTon Roosendaal <ton@blender.org>2006-08-09 14:00:27 +0400
commitc56f04cb5f306af8ec4fe1a6f0fc309eb3fbcba9 (patch)
tree30f6c6d88982e0f697e32efb719860799d17e822 /source/blender/blenloader/intern/readblenentry.c
parent6c48d7bda2963d71185ae34c7fb5aa2cb66b8f22 (diff)
Fixes I did before leaving to siggraph, couldn't commit it due to freeze:
- buffer overflow was possible with providing a file path argument longer than 256 characters. - buttons "VCol Light" and "VCol Paint" were not mutual exclusive - quicktime error menu (unable to create) had a enter in end - deleting points in CurveMapping button (like Curves node in compositor) did not give proper recalc event - edges render menu had a tooltip still mentioning the unified render
Diffstat (limited to 'source/blender/blenloader/intern/readblenentry.c')
-rw-r--r--source/blender/blenloader/intern/readblenentry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readblenentry.c b/source/blender/blenloader/intern/readblenentry.c
index a16bd5a3972..4e3c674c2f5 100644
--- a/source/blender/blenloader/intern/readblenentry.c
+++ b/source/blender/blenloader/intern/readblenentry.c
@@ -263,7 +263,7 @@ BlendFileData *BLO_read_from_file(char *file, BlendReadError *error_r)
bfd= blo_read_file_internal(fd, error_r);
if (bfd) {
bfd->type= BLENFILETYPE_BLEND;
- strcpy(bfd->main->name, file);
+ strncpy(bfd->main->name, file, sizeof(bfd->main->name)-1);
}
blo_freefiledata(fd);
}