Cheers Bill that seems to have done the trick.
David
On Tue, 20 Aug 2002, Bill Moseley wrote:
>
> If you really want to use soundex, either cvs update or use try this
> patch. You can tell the by the dates that this bug has been sitting there
> for a long time -- I guess soundex is not widely used.
>
> Index: soundex.c
> ===================================================================
> RCS file: /cvsroot/swishe/swish-e/src/soundex.c,v
> retrieving revision 1.2
> diff -u -u -r1.2 soundex.c
> --- soundex.c 12 Feb 2001 17:36:37 -0000 1.2
> +++ soundex.c 20 Aug 2002 14:12:29 -0000
> @@ -86,14 +86,14 @@
> #endif
>
> /* Make sure it actually starts with a letter */
> - if(!isalpha((int)((unsigned char)word[0]))) soundXit();
> + if(!isalpha((int)((unsigned char)word[0]))) return soundXit();
> #ifdef _DEBUG
> /* Debug to console */
> printf("isalpha, ");
> #endif
>
> /* Get string length and make sure its at least 3 characters */
> - if((n = (int)strlen(word)) < 3) soundXit();
> + if((n = (int)strlen(word)) < 3) return soundXit();
> #ifdef _DEBUG
> /* Debug to console */
> printf("=>3, ");
>
>
>
--
-------------------------------------------------------------------
Dr David Hoare
Systems Developer
International Union of Crystallography
5 Abbey Square, Chester CH1 2HU, England
Tel: +44 1244 342878
Fax: +44 1244 314888
E-mail: dh2@iucr.org
*************************************************
** **
** Make sure you're in the new online edition **
** of the World Directory of Crystallographers **
** http://wdc.iucr.org **
** **
*************************************************
-------------------------------------------------------------------
Received on Thu Aug 22 09:16:32 2002