diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-09-10 03:11:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-09-10 03:11:43 +0400 |
commit | aec894939f3cb18c30a01bf97a6512cabcb32a4b (patch) | |
tree | e107e898ec5a8b98c62e1323757ff6db8d123c61 /source/blender/editors/space_console | |
parent | 434af76286152c001d9df0d6da8048fb6da85696 (diff) |
- off by 1 error with console command line memory re-allocation.
- documenting vgroups crashed.
Diffstat (limited to 'source/blender/editors/space_console')
-rw-r--r-- | source/blender/editors/space_console/console_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c index 3d0d284b501..2120b97becf 100644 --- a/source/blender/editors/space_console/console_ops.c +++ b/source/blender/editors/space_console/console_ops.c @@ -190,7 +190,7 @@ ConsoleLine *console_history_verify(const bContext *C) static void console_line_verify_length(ConsoleLine *ci, int len) { /* resize the buffer if needed */ - if(len > ci->len_alloc) { + if(len >= ci->len_alloc) { int new_len= len * 2; /* new length */ char *new_line= MEM_callocN(new_len, "console line"); memcpy(new_line, ci->line, ci->len); |