fix for [4439]

This commit is contained in:
Mitchell Livingston 2008-01-03 18:46:33 +00:00
parent bbe41f4b4c
commit 69c4b99995
1 changed files with 3 additions and 3 deletions

View File

@ -975,9 +975,9 @@ generateKeyParam( char * msg, int len )
static int
is_rfc2396_alnum( char ch )
{
return strchr( "abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789", ch ) != NULL;
return ( (ch >= 'a' && ch <= 'z' )
|| (ch >= 'A' && ch <= 'Z' )
|| (ch >= '0' && ch <= '9' ) );
}
static void