mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-08 21:42:07 +03:00
increased the max number of parameters Daniel
* xsltproc/xsltproc.c: increased the max number of parameters Daniel
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Fri Jan 4 15:50:25 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xsltproc/xsltproc.c: increased the max number of parameters
|
||||
|
||||
Thu Dec 20 14:54:27 CET 2001 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* libxslt.pc.in configure.in: added pkg-config file from Rodrigo Moya
|
||||
|
@@ -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")) ||
|
||||
|
Reference in New Issue
Block a user