[xslt] xsltproc: too many params
- From: Elizabeth Mattijsen <liz dijkmat nl>
- To: xslt gnome org
- Subject: [xslt] xsltproc: too many params
- Date: Fri, 04 Jan 2002 15:11:41 +0100
I got burned by "too many params" error in xsltproc (1.0.9). I raised the
maximum number of parameters from 16 to 32 using this patch:
--- xsltproc.c.old Tue Nov 27 04:55:15 2001
+++ xsltproc.c Fri Jan 4 14:55:41 2002
@@ -98,7 +98,7 @@
#endif
static int profile = 0;
-static const char *params[16 + 1];
+static const char *params[32 + 1];
static int nbparams = 0;
static const char *output = NULL;
static int errorno = 0;
@@ -437,7 +437,7 @@
i++;
params[nbparams++] = argv[i++];
params[nbparams++] = argv[i];
- if (nbparams >= 16) {
+ if (nbparams >= 32) {
fprintf(stderr, "too many params\n");
return (2);
}
The maximum number of parameters should probably become a constant and
mentioned in the error message. If someone can tell me to properly define
a constant/macro for this in C (yes, my C is _very_ rusty), I'll provide a
patch that uses constants/macro's.
Elizabeth Mattijsen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]