summaryrefslogtreecommitdiff
path: root/mysys/mf_soundex.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/mf_soundex.c')
-rw-r--r--mysys/mf_soundex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/mf_soundex.c b/mysys/mf_soundex.c
index 6409caa356d..9fe54ffafa0 100644
--- a/mysys/mf_soundex.c
+++ b/mysys/mf_soundex.c
@@ -51,7 +51,7 @@ void soundex(register my_string out_pntr, my_string in_pntr,
if (remove_garbage)
{
- while (*in_pntr && isspace(*in_pntr)) /* Skipp pre-space */
+ while (*in_pntr && !isalpha(*in_pntr))
in_pntr++;
}
*out_pntr++ = toupper(*in_pntr); /* Copy first letter */
@@ -97,7 +97,7 @@ static char get_scode(char **ptr, pbool remove_garbage)
ch=toupper(**ptr);
if (ch < 'A' || ch > 'Z')
{
- if (isalpha(ch)) /* If exetended alfa (country spec) */
+ if (isalpha(ch)) /* If extended alpha (country spec) */
return '0'; /* threat as vokal */
return 0; /* Can't map */
}