diff options
author | unknown <serg@serg.mylan> | 2004-04-28 14:19:02 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-04-28 14:19:02 +0200 |
commit | fdee1cbbb43a668f50bc6496dae125786e78536b (patch) | |
tree | 7a838f867788c7a578b84c9493545b2123d12d19 /mysys/mf_soundex.c | |
parent | b590c36a36d75c8e3867cef55e491107e4e92fde (diff) | |
download | mariadb-git-fdee1cbbb43a668f50bc6496dae125786e78536b.tar.gz |
bug#3556 - soundex
Diffstat (limited to 'mysys/mf_soundex.c')
-rw-r--r-- | mysys/mf_soundex.c | 4 |
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 */ } |