Fix for MAX_NAME (== 64) and FILE_MAX (== 1024) in DNA headers.

Suggested by Sergey Sharybin through a code review of the branch.
This commit is contained in:
Tamito Kajiyama 2013-03-20 01:05:37 +00:00
parent cde0230a98
commit 1f6c9d18ed
2 changed files with 3 additions and 3 deletions

@ -90,7 +90,7 @@ struct FreestyleLineStyle;
typedef struct FreestyleLineSet {
struct FreestyleLineSet *next, *prev;
char name[32]; /* line set name */
char name[64]; /* line set name, MAX_NAME */
int flags;
int selection; /* selection criteria */
@ -107,7 +107,7 @@ typedef struct FreestyleLineSet {
typedef struct FreestyleModuleConfig {
struct FreestyleModuleConfig *next, *prev;
char module_path[256];
char module_path[1024]; /* FILE_MAX */
short is_displayed;
short pad[3];
} FreestyleModuleConfig;

@ -37,7 +37,7 @@ struct CurveMapping;
typedef struct LineStyleModifier {
struct LineStyleModifier *next, *prev;
char name[32];
char name[64]; /* MAX_NAME */
int type;
float influence;
int flags;