--- parser3/src/classes/math.C 2015/06/02 18:46:05 1.76 +++ parser3/src/classes/math.C 2015/09/22 23:53:56 1.77 @@ -22,7 +22,7 @@ extern "C" char *crypt(const char* , const char* ); #endif -volatile const char * IDENT_MATH_C="$Id: math.C,v 1.76 2015/06/02 18:46:05 moko Exp $"; +volatile const char * IDENT_MATH_C="$Id: math.C,v 1.77 2015/09/22 23:53:56 moko Exp $"; // defines @@ -112,9 +112,10 @@ static void math2(Request& r, MethodPara MATH2(pow) -inline bool is_salt_body_char(int c) { +inline bool is_salt_body_char(unsigned char c) { return pa_isalnum(c) || c == '.' || c=='/'; } + static size_t calc_prefix_size(const char* salt) { if(strlen(salt)) { if(!is_salt_body_char((unsigned char)salt[0])) { // $... {...