Commit b62655fb authored by houkime's avatar houkime Committed by Esteban Blanc

increase filename and dirname sizes for slapos

parent 4283d14a
...@@ -133,8 +133,8 @@ class CnvReadWbl { ...@@ -133,8 +133,8 @@ class CnvReadWbl {
cread_eLine linetype; cread_eLine linetype;
int state; int state;
int object_state; int object_state;
char source_dir[200]; char source_dir[400];
char current_file[200]; char current_file[400];
char attr_name[80]; char attr_name[80];
char attr_flags[200]; char attr_flags[200];
char attr_type[80]; char attr_type[80];
...@@ -190,7 +190,7 @@ class CnvReadWbl { ...@@ -190,7 +190,7 @@ class CnvReadWbl {
int doc_cnt; int doc_cnt;
int doc_fresh; int doc_fresh;
char sobject_name[80]; char sobject_name[80];
char dir[120]; char dir[400];
char ObjBodyDef[80]; char ObjBodyDef[80];
char GraphPlcNode[80]; char GraphPlcNode[80];
......
...@@ -45,9 +45,9 @@ class CnvReadXtthelp { ...@@ -45,9 +45,9 @@ class CnvReadXtthelp {
public: public:
CnvReadXtthelp(char* x_name, char* x_directory, CnvXtthelpTo* to); CnvReadXtthelp(char* x_name, char* x_directory, CnvXtthelpTo* to);
std::ofstream fp; std::ofstream fp;
char directory[80]; char directory[400];
char name[80]; char name[80];
char filename[120]; char filename[400];
CnvXtthelpTo* xtthelpto; CnvXtthelpTo* xtthelpto;
int read_xtthelp(); int read_xtthelp();
......
...@@ -54,7 +54,7 @@ extern "C" { ...@@ -54,7 +54,7 @@ extern "C" {
#include "cnv_classdep.h" #include "cnv_classdep.h"
#include "cnv_changelog.h" #include "cnv_changelog.h"
typedef char cnv_tName[200]; typedef char cnv_tName[300];
static void usage() static void usage()
{ {
......
...@@ -114,8 +114,8 @@ extern "C" { ...@@ -114,8 +114,8 @@ extern "C" {
#define pwr_cSizFullName 199 #define pwr_cSizFullName 199
#define pwr_cSizOName 199 #define pwr_cSizOName 199
#define pwr_cSizAName 399 #define pwr_cSizAName 399
#define pwr_cSizFileName 255 #define pwr_cSizFileName 455
#define pwr_cSizCmd 399 #define pwr_cSizCmd 799
typedef void* pwr_tAddress; //!< Generic pointer type. typedef void* pwr_tAddress; //!< Generic pointer type.
typedef unsigned int pwr_tBit; //!< Bit type. typedef unsigned int pwr_tBit; //!< Bit type.
......
...@@ -59,7 +59,7 @@ typedef struct { ...@@ -59,7 +59,7 @@ typedef struct {
#define DCLI_SYMBOLTABLE_SIZE 500 #define DCLI_SYMBOLTABLE_SIZE 500
static char dcli_qual_str[10][2][400]; static char dcli_qual_str[10][2][800];
static dcli_t_symboltable dcli_symboltable[DCLI_SYMBOLTABLE_SIZE]; static dcli_t_symboltable dcli_symboltable[DCLI_SYMBOLTABLE_SIZE];
static int dcli_symboltable_count; static int dcli_symboltable_count;
......
...@@ -48,10 +48,10 @@ extern "C" { ...@@ -48,10 +48,10 @@ extern "C" {
/* co_dcli.c /* co_dcli.c
Command line interpreter. */ Command line interpreter. */
#define DCLI_CMD_SIZE 400 #define DCLI_CMD_SIZE 800
#define DCLI_QUAL_SIZE 400 #define DCLI_QUAL_SIZE 800
#define DCLI_SYM_KEY_SIZE 200 #define DCLI_SYM_KEY_SIZE 400
#define DCLI_SYM_VALUE_SIZE 200 #define DCLI_SYM_VALUE_SIZE 400
typedef struct { typedef struct {
char command[20]; char command[20];
...@@ -121,7 +121,7 @@ typedef struct s_element { ...@@ -121,7 +121,7 @@ typedef struct s_element {
char struct_begin; char struct_begin;
char name[256]; char name[256];
unsigned int mask; unsigned int mask;
char filename[120]; char filename[400];
int line_nr; int line_nr;
struct s_element* next; struct s_element* next;
struct s_element* prev; struct s_element* prev;
......
...@@ -68,10 +68,10 @@ ...@@ -68,10 +68,10 @@
int dcli_search_file(const char* name, char* found_file, int new) int dcli_search_file(const char* name, char* found_file, int new)
{ {
static DIR* directory; static DIR* directory;
static char pattern[200]; static char pattern[400];
static char dir[200]; static char dir[400];
char dev[2], dir2[200], file[80], type[80]; char dev[2], dir2[400], file[80], type[80];
char cwd[200]; char cwd[400];
int version; int version;
int found; int found;
static int wildcard; static int wildcard;
...@@ -159,10 +159,10 @@ int dcli_search_file(const char* name, char* found_file, int new) ...@@ -159,10 +159,10 @@ int dcli_search_file(const char* name, char* found_file, int new)
int dcli_search_directory(const char* name, char* found_file, int new) int dcli_search_directory(const char* name, char* found_file, int new)
{ {
static DIR* directory; static DIR* directory;
static char pattern[200]; static char pattern[400];
static char dir[200]; static char dir[400];
char dev[2], dir2[200], file[80], type[80]; char dev[2], dir2[400], file[80], type[80];
char cwd[200]; char cwd[400];
int version; int version;
int found; int found;
static int wildcard; static int wildcard;
...@@ -319,9 +319,9 @@ int dcli_parse_filename(const char* filename, char* dev, char* dir, char* file, ...@@ -319,9 +319,9 @@ int dcli_parse_filename(const char* filename, char* dev, char* dir, char* file,
char* type, int* version) char* type, int* version)
{ {
char* s; char* s;
char ldev[200]; char ldev[400];
char ldir[200]; char ldir[400];
char lfile[200]; char lfile[400];
char ltype[80]; char ltype[80];
if ((s = strstr(filename, "::"))) if ((s = strstr(filename, "::")))
......
...@@ -52,7 +52,7 @@ typedef enum { ...@@ -52,7 +52,7 @@ typedef enum {
dcli_eTrans_File dcli_eTrans_File
} dcli_eTrans; } dcli_eTrans;
static char dcli_default_directory[200] = ""; static char dcli_default_directory[400] = "";
void dcli_set_default_directory(char* dir) void dcli_set_default_directory(char* dir)
{ {
...@@ -76,7 +76,7 @@ int dcli_get_defaultfilename(const char* inname, char* outname, const char* ext) ...@@ -76,7 +76,7 @@ int dcli_get_defaultfilename(const char* inname, char* outname, const char* ext)
dcli_replace_env(filename, outname); dcli_replace_env(filename, outname);
} else { } else {
if (streq(dcli_default_directory, "")) { if (streq(dcli_default_directory, "")) {
char cwd[200]; char cwd[400];
if (getcwd(cwd, sizeof(cwd)) != NULL) { if (getcwd(cwd, sizeof(cwd)) != NULL) {
strcpy(filename, cwd); strcpy(filename, cwd);
...@@ -259,7 +259,7 @@ char* dcli_fgetname(FILE* fp, char* name, char* def_name) ...@@ -259,7 +259,7 @@ char* dcli_fgetname(FILE* fp, char* name, char* def_name)
int dcli_translate_filename(char* out, const char* in) int dcli_translate_filename(char* out, const char* in)
{ {
char out_name[200]; char out_name[400];
const char* s; const char* s;
char* t; char* t;
int i; int i;
......
...@@ -428,7 +428,7 @@ GNU General Public License for more details.\n\n"; ...@@ -428,7 +428,7 @@ GNU General Public License for more details.\n\n";
if (str[0] != 0) { if (str[0] != 0) {
int nr; int nr;
char cmd_array[10][400]; char cmd_array[10][800];
str_trim(str, str); str_trim(str, str);
nr = dcli_parse(str, ";", "", (char*)cmd_array, nr = dcli_parse(str, ";", "", (char*)cmd_array,
......
...@@ -48,7 +48,7 @@ class wb_wblfile { ...@@ -48,7 +48,7 @@ class wb_wblfile {
public: public:
wb_wbl_parser* parser; wb_wbl_parser* parser;
wb_wblnode* rootAST; wb_wblnode* rootAST;
char file_name[200]; char file_name[400];
pwr_tTime time; pwr_tTime time;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment