Commit 5168429f authored by Rob Swindell's avatar Rob Swindell 💬

My first opportunity to use IS_ALPHANUMERIC ()instead of isalnum()

and I blew it. Here's to learning new tricks.
parent 7260c60c
Pipeline #763 passed with stage
in 17 minutes and 3 seconds
......@@ -98,11 +98,11 @@ BOOL matchusername(scfg_t* cfg, const char* name, const char* comp)
const char* np = name;
const char* cp = comp;
while(*np != '\0' && *cp != '\0' && *cp != '@') {
if(!isalnum(*np)) {
if(!IS_ALPHANUMERIC(*np)) {
np++;
continue;
}
if(!isalnum(*cp)) {
if(!IS_ALPHANUMERIC(*cp)) {
cp++;
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment