summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-05-10 15:37:02 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-05-10 15:37:02 +0000
commitb23a8abc3f5ada75b9d6ddf10b69bf435e2ac71f (patch)
tree4793677f13725e55903815f5237ab99a8de9fee6 /src/lib
parent60931c5c21144dd4437fcb47caf8e63ed9b0d40b (diff)
downloadkrb5-b23a8abc3f5ada75b9d6ddf10b69bf435e2ac71f.tar.gz
krb5-b23a8abc3f5ada75b9d6ddf10b69bf435e2ac71f.tar.xz
krb5-b23a8abc3f5ada75b9d6ddf10b69bf435e2ac71f.zip
zero-based arrays for keytype/etype max
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@823 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/crypto/cryptoconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypto/cryptoconf.c b/src/lib/crypto/cryptoconf.c
index 5a60bc8b23..047e1c7a54 100644
--- a/src/lib/crypto/cryptoconf.c
+++ b/src/lib/crypto/cryptoconf.c
@@ -63,7 +63,7 @@ krb5_cs_table_entry *krb5_csarray[] = {
LUCIFER_CRC_CSENTRY,
};
-int krb5_max_cryptosystem = sizeof(krb5_csarray)/sizeof(krb5_csarray[0]);
+int krb5_max_cryptosystem = sizeof(krb5_csarray)/sizeof(krb5_csarray[0]) - 1;
krb5_cs_table_entry *krb5_keytype_array[] = {
0,
@@ -71,7 +71,7 @@ krb5_cs_table_entry *krb5_keytype_array[] = {
LUCIFER_CRC_CSENTRY,
};
-int krb5_max_keytype = sizeof(krb5_keytype_array)/sizeof(krb5_keytype_array[0]);
+int krb5_max_keytype = sizeof(krb5_keytype_array)/sizeof(krb5_keytype_array[0]) - 1;
krb5_checksum_entry *krb5_cksumarray[] = {
0,