if ( log )
syslog( LOG_INFO, "Whois++ Query: %s", buffer );
}
- while ( buffer[idx] != '\0' && isspace( buffer[idx] ) )
+ while ( buffer[idx] != '\0' && isspace( (unsigned char) buffer[idx] ) )
idx++;
token[0] = buffer[idx++];
token[1] = '\0';
token[i++] = buffer[idx++];
else
token[i++] = ch;
- } while ( ch != '\0' && !isspace( ch ) && !isspecial( ch ) );
+ } while ( ch != '\0' &&
+ !isspace( (unsigned char) ch ) && !isspecial( ch ) );
token[--i] = '\0';
idx--;
/**/ /*
} else {
if ( ( s = strchr( buffer, ',' ) ) != NULL ) {
*s++ = '\0';
- while ( *s && isspace( *s ) )
+ while ( *s && isspace( (unsigned char) *s ) )
s++;
sprintf( query, "(sn%s%s)",
(soundex)?"~=":"=", buffer );
/* let's just make sure there is no title */
if ( ( t = strrchr( s, ',' ) ) != NULL ) {
*t++ = '\0';
- while ( *t && isspace( *t ) )
+ while ( *t && isspace( (unsigned char) *t ) )
t++;
sprintf( query, "(personalTitle%s%s)",
(soundex)?"~=":"=", t );