Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-03-20 05:05:37 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-03-20 05:05:37 +0400
commit1f6c9d18ed3b26b52aa99cd89441d96b63b7f173 (patch)
treec432a3d21f77f63bf1f8764a8b97c6e070710353
parentcde0230a9858ba2c25b886840fbcd076508cb728 (diff)
Fix for MAX_NAME (== 64) and FILE_MAX (== 1024) in DNA headers.
Suggested by Sergey Sharybin through a code review of the branch.
-rw-r--r--source/blender/makesdna/DNA_freestyle_types.h4
-rw-r--r--source/blender/makesdna/DNA_linestyle_types.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_freestyle_types.h b/source/blender/makesdna/DNA_freestyle_types.h
index b5fe7ead936..01b28ca1700 100644
--- a/source/blender/makesdna/DNA_freestyle_types.h
+++ b/source/blender/makesdna/DNA_freestyle_types.h
@@ -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;
diff --git a/source/blender/makesdna/DNA_linestyle_types.h b/source/blender/makesdna/DNA_linestyle_types.h
index 9a42c79c098..f5473d3d84a 100644
--- a/source/blender/makesdna/DNA_linestyle_types.h
+++ b/source/blender/makesdna/DNA_linestyle_types.h
@@ -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;