Skip to content

Commit

Permalink
UPBGE: Fix property and file name string size for components.
Browse files Browse the repository at this point in the history
Attributes PythonComponentProperty::[name/strval] and
PythonComponent::[module/name] were not of the size they handle
for maximum, whether 1024 for file name and 128 for property
string.

These size are properly set in this commit.

Fix issue: #883.
  • Loading branch information
panzergame authored and youle31 committed May 26, 2019
1 parent 4fbdf1c commit facaf72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/blender/makesdna/DNA_python_component_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

typedef struct PythonComponentProperty {
struct PythonComponentProperty *next, *prev;
char name[64];
char name[128]; /* 128 = MAX_PROPSTRING */
short type;
short boolval;
int intval;
float floatval;
char strval[64];
char strval[128]; /* 128 = MAX_PROPSTRING */
int itemval;
float vec[4];
ListBase enumval;
Expand All @@ -41,8 +41,8 @@ typedef struct PythonComponentProperty {
typedef struct PythonComponent {
struct PythonComponent *next, *prev;
ListBase properties;
char name[64];
char module[64];
char name[1024]; /* 1024 = FILE_MAX */
char module[1024]; /* 1024 = FILE_MAX */
int flag;
int pad;
} PythonComponent;
Expand Down

0 comments on commit facaf72

Please sign in to comment.