diff options
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -842,7 +842,7 @@ strcasehash(register const char *string) */ while (*string) { unsigned int c = (unsigned char)*string++; - if ((unsigned int)(c - 'A') > ('Z' - 'A')) c += 'a' - 'A'; + if ((unsigned int)(c - 'A') <= ('Z' - 'A')) c += 'a' - 'A'; hval ^= c; /* multiply by the 32 bit FNV magic prime mod 2^32 */ |