diff options
-rw-r--r-- | xml/function.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xml/function.c b/xml/function.c index 5a11609..d185559 100644 --- a/xml/function.c +++ b/xml/function.c @@ -1,5 +1,5 @@ /* - * $Id: function.c,v 1.5 2005/01/02 20:04:09 lordjaxom Exp $ + * $Id: function.c,v 1.6 2005/01/02 20:33:53 lordjaxom Exp $ */ #include "xml/function.h" @@ -115,6 +115,12 @@ bool cxFunction::Parse(const std::string &Text) return false; } + if (mNumParams == MAXPARAMETERS) { + esyslog("ERROR: Too many parameters to function, maximum is %d", + MAXPARAMETERS); + return false; + } + mType = type; mParams[mNumParams++] = expr; last = ptr + 1; |