diff options
author | Ton Roosendaal <ton@blender.org> | 2006-08-09 14:00:27 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-08-09 14:00:27 +0400 |
commit | c56f04cb5f306af8ec4fe1a6f0fc309eb3fbcba9 (patch) | |
tree | 30f6c6d88982e0f697e32efb719860799d17e822 /source/blender/blenloader/intern/readblenentry.c | |
parent | 6c48d7bda2963d71185ae34c7fb5aa2cb66b8f22 (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.c | 2 |
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); } |