diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-23 17:36:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-23 17:38:59 +0300 |
commit | 9c7d2ff62f5fa28e13e7b63215382260c744ef35 (patch) | |
tree | 2e12acf8ae133eacfb18fb5ece1080551fbb81e6 /source/blender/blenlib/intern/buffer.c | |
parent | 548eb9eb4bdd20946e89d50c7b8a079e9b8b143b (diff) |
Fix error in BLI_buffer_reinit
alloc_size was set incorrectly causing arrays not to be resized correctly.
Diffstat (limited to 'source/blender/blenlib/intern/buffer.c')
-rw-r--r-- | source/blender/blenlib/intern/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/buffer.c b/source/blender/blenlib/intern/buffer.c index 525b18333af..e2172148d1e 100644 --- a/source/blender/blenlib/intern/buffer.c +++ b/source/blender/blenlib/intern/buffer.c @@ -123,7 +123,7 @@ void BLI_buffer_reinit(BLI_Buffer *buffer, const size_t new_count) buffer->alloc_count = new_count; } - buffer->data = buffer_alloc(buffer, new_count); + buffer->data = buffer_alloc(buffer, buffer->alloc_count); } else { if (buffer->flag & BLI_BUFFER_USE_CALLOC) { |