fix for error in BLI_buffer_declare_static(), the stack variable wasn't the right size, from original commit 53440.

Caused UV stretch display to fail.
This commit is contained in:
Campbell Barton 2013-07-26 15:26:51 +00:00
parent 5dc3cfc983
commit e3f6875df0

@ -53,7 +53,7 @@ enum {
#define BLI_buffer_declare_static(type_, name_, flag_, static_count_) \ #define BLI_buffer_declare_static(type_, name_, flag_, static_count_) \
char name_ ## user; /* warn for free only */ \ char name_ ## user; /* warn for free only */ \
type_ *name_ ## _static_[static_count_]; \ type_ name_ ## _static_[static_count_]; \
BLI_Buffer name_ = { \ BLI_Buffer name_ = { \
/* clear the static memory if this is a calloc'd array */ \ /* clear the static memory if this is a calloc'd array */ \
((void)((flag_ & BLI_BUFFER_USE_CALLOC) ? \ ((void)((flag_ & BLI_BUFFER_USE_CALLOC) ? \