diff --git a/ChangeLog b/ChangeLog index 795f703a..803196d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 4 15:50:25 CET 2002 Daniel Veillard + + * xsltproc/xsltproc.c: increased the max number of parameters + Thu Dec 20 14:54:27 CET 2001 Daniel Veillard * libxslt.pc.in configure.in: added pkg-config file from Rodrigo Moya diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index dcd19066..45aeb328 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -98,11 +98,14 @@ static int xinclude = 0; #endif static int profile = 0; -static const char *params[16 + 1]; +#define MAX_PARAMETERS 64 + +static const char *params[MAX_PARAMETERS + 1]; static int nbparams = 0; static const char *output = NULL; static int errorno = 0; + /* * Internal timing routines to remove the necessity to have unix-specific * function calls @@ -437,8 +440,8 @@ main(int argc, char **argv) i++; params[nbparams++] = argv[i++]; params[nbparams++] = argv[i]; - if (nbparams >= 16) { - fprintf(stderr, "too many params\n"); + if (nbparams >= MAX_PARAMETERS) { + fprintf(stderr, "too many params increase MAX_PARAMETERS \n"); return (2); } } else if ((!strcmp(argv[i], "-maxdepth")) ||