summaryrefslogtreecommitdiff
path: root/libexslt
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-12-26 14:44:46 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-12-26 14:44:46 +0000
commit69696d2182d6cce7d2a7e0e8a6c7d1b3e61ec300 (patch)
tree4b1941a6c7ba4f8c789a934a3d81275e4a0111dd /libexslt
parent24abc7719af2ec28994f1f8309c6e77657fbf049 (diff)
downloadlibxslt-69696d2182d6cce7d2a7e0e8a6c7d1b3e61ec300.tar.gz
libxslt-69696d2182d6cce7d2a7e0e8a6c7d1b3e61ec300.tar.bz2
libxslt-69696d2182d6cce7d2a7e0e8a6c7d1b3e61ec300.zip
Alexey Efimov found a typo bug in exsltStrPaddingFunction() Daniel
* libexslt/strings.c: Alexey Efimov found a typo bug in exsltStrPaddingFunction() Daniel
Diffstat (limited to 'libexslt')
-rw-r--r--libexslt/strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexslt/strings.c b/libexslt/strings.c
index 908f877e..cd561f2f 100644
--- a/libexslt/strings.c
+++ b/libexslt/strings.c
@@ -119,7 +119,7 @@ exsltStrPaddingFunction (xmlXPathParserContextPtr ctxt, int nargs) {
int number, str_len = 0;
xmlChar *str = NULL, *ret = NULL, *tmp;
- if ((nargs < 1) && (nargs > 2)) {
+ if ((nargs < 1) || (nargs > 2)) {
xmlXPathSetArityError(ctxt);
return;
}