]> jfr.im git - irc/blitzed-org/bopm.git/commitdiff
config.c:
authorandy <redacted>
Fri, 1 Feb 2002 04:40:16 +0000 (04:40 +0000)
committerandy <redacted>
Fri, 1 Feb 2002 04:40:16 +0000 (04:40 +0000)
Possible stupid error with calculating size of config hash.

config.c

index 05d252ccefb5440ff566401265473941ce725fa7..438b36807ddb05bf7b00849d5b2bb33fb35ec36f 100644 (file)
--- a/config.c
+++ b/config.c
@@ -137,7 +137,7 @@ void config_load(char *filename)
 
             args = clean(args); /* Strip leading and tailing spaces */
 
-            for(i = 0; i < (sizeof(hash) / sizeof(config_hash) - 1); i++)
+            for(i = 0; i < (sizeof(hash) / sizeof(config_hash)) - 1; i++)
               if(!strcasecmp(key, hash[i].key))
                 {
                       switch(hash[i].type)