Skip to content
Snippets Groups Projects
Commit 5168429f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

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

and I blew it. Here's to learning new tricks.
parent 7260c60c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #763 passed
...@@ -98,11 +98,11 @@ BOOL matchusername(scfg_t* cfg, const char* name, const char* comp) ...@@ -98,11 +98,11 @@ BOOL matchusername(scfg_t* cfg, const char* name, const char* comp)
const char* np = name; const char* np = name;
const char* cp = comp; const char* cp = comp;
while(*np != '\0' && *cp != '\0' && *cp != '@') { while(*np != '\0' && *cp != '\0' && *cp != '@') {
if(!isalnum(*np)) { if(!IS_ALPHANUMERIC(*np)) {
np++; np++;
continue; continue;
} }
if(!isalnum(*cp)) { if(!IS_ALPHANUMERIC(*cp)) {
cp++; cp++;
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment