Fixed almost all CLang bugs: (mem leaks?, parsing, key system, etc)

Warning - caching is still broken!
Fixed bug in ucfirst()
This commit is contained in:
David Anderson
2004-08-15 13:49:59 +00:00
parent 3bbfca6d08
commit 46adfaedd3
3 changed files with 75 additions and 30 deletions

View File

@ -543,9 +543,9 @@ static cell AMX_NATIVE_CALL amx_ucfirst(AMX *amx, cell *params)
{
int len = 0;
cell *str = get_amxaddr(amx, params[1]);
if (!isalpha((char)str[0]) || (str[0]&(1<<5)))
if (!isalpha((char)str[0]) || !(str[0]&(1<<5)))
return 0;
str[0] |= (1<<5);
str[0] &= ~(1<<5);
return 1;
}