Commit e30bad15 authored by Claes Sjofors's avatar Claes Sjofors

Build, strings for commands and filnames increased

parent 585bc1cd
......@@ -65,7 +65,7 @@ class CnvCtx {
strcpy( setup_filename, "");
strcpy( depend_filename, "");
}
char dir[120];
pwr_tFileName dir;
int generate_html;
int generate_xtthelp;
int generate_src;
......
......@@ -109,8 +109,8 @@ int main( int argc, char *argv[])
int exit_sts = 1;
CnvCtx *ctx;
int sts;
char found_file[200];
char files[200];
pwr_tFileName found_file;
pwr_tFileName files;
char *s;
int i;
int file_cnt;
......
......@@ -142,7 +142,7 @@ extern "C" {
#define pwr_cSizOName 199
#define pwr_cSizAName 399
#define pwr_cSizFileName 255
#define pwr_cSizCmd 255
#define pwr_cSizCmd 399
typedef void *pwr_tAddress; //!< Generic pointer type.
typedef unsigned int pwr_tBit; //!< Bit type.
......
......@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
pwr_tStatus sts;
int i;
char str[256] ;
pwr_tCmd str;
CmdGtk *cmd;
int quiet = 0;
......@@ -140,6 +140,10 @@ int main(int argc, char *argv[])
else {
if ( str[0] != 0)
strcat( str, " ");
if ( strlen(str) + strlen(argv[i]) >= sizeof(str)) {
cout << "Command string too long" << endl;
exit(0);
}
strcat( str, argv[i]);
}
}
......
......@@ -256,7 +256,7 @@ static int wbl_sort_files( const void *file1, const void *file2)
int wb_vrepwbl::load( const char *fname)
{
int i;
char file_spec[200];
pwr_tFileName file_spec;
pwr_tStatus sts, rsts;
int file_cnt_sort = 0;
......@@ -1358,7 +1358,7 @@ int wb_vrepwbl::getTemplateBody( pwr_tCid cid, pwr_eBix bix, size_t *size, void
int wb_vrepwbl::load_files( const char *file_spec)
{
char found_file[200];
pwr_tFileName found_file;
int sts;
wb_wbl_parser p;
......
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