summaryrefslogtreecommitdiff
path: root/src/bn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bn.c')
-rw-r--r--src/bn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bn.c b/src/bn.c
index b5333c9c..48fb990a 100644
--- a/src/bn.c
+++ b/src/bn.c
@@ -252,7 +252,7 @@ xmlSecBnFromString(xmlSecBnPtr bn, const xmlChar* str, xmlSecSize base) {
continue;
}
- xmlSecAssert2(ch <= sizeof(xmlSecBnLookupTable), -1);
+ xmlSecAssert2(ch < sizeof(xmlSecBnLookupTable) / sizeof(xmlSecBnLookupTable[0]), -1);
nn = xmlSecBnLookupTable[ch];
if((nn < 0) || ((xmlSecSize)nn > base)) {
xmlSecError(XMLSEC_ERRORS_HERE,