Mercurial > pidgin.yaz
changeset 16153:6613fb7af427
Call strtolower() so that we don't have to check against the
capital versions of these letters
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 15 Apr 2007 18:51:11 +0000 |
parents | a740afef2daf |
children | fce68761da8c |
files | libpurple/util.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Sun Apr 15 18:50:31 2007 +0000 +++ b/libpurple/util.c Sun Apr 15 18:51:11 2007 +0000 @@ -134,14 +134,14 @@ accumulator |= str[i] - 48; else { - switch(str[i]) + switch(tolower(str[i])) { - case 'a': case 'A': accumulator |= 10; break; - case 'b': case 'B': accumulator |= 11; break; - case 'c': case 'C': accumulator |= 12; break; - case 'd': case 'D': accumulator |= 13; break; - case 'e': case 'E': accumulator |= 14; break; - case 'f': case 'F': accumulator |= 15; break; + case 'a': accumulator |= 10; break; + case 'b': accumulator |= 11; break; + case 'c': accumulator |= 12; break; + case 'd': accumulator |= 13; break; + case 'e': accumulator |= 14; break; + case 'f': accumulator |= 15; break; } }