Thanks!

We've applied this patch into 3.1.10 sources.


"Andrey A. Chernov" wrote:
> 
> Since flag initialized only _once_ for all words, it have strange values
> from previous buffer for dictionary words without "/*" part.
> 
> --- src/spell.c.bak     Fri Jan 12 16:28:30 2001
> +++ src/spell.c Thu Feb  1 01:19:29 2001
> @@ -137,7 +137,7 @@
>  __INDLIB__ int UdmDBImportDictionary(UDM_AGENT * Indexer,const char *lang,const 
>char *filename, int dump){
>         unsigned char str[BUFSIZ];
>         unsigned char *s;
> -       const unsigned char *flag=NULL;
> +       const unsigned char *flag;
>         int rej=0;
>         int imp=0;
>         FILE *dict;
> @@ -145,6 +145,7 @@
>         if(!(dict=fopen(filename,"r")))return(1);
>         while(fgets(str,sizeof(str),dict)){
> 
> +               flag=NULL;
>                 if((s=strchr(str,'/'))){
>                         *s=0;s++;flag=s;
>                         while(*s){
> --
> Andrey A. Chernov
> http://ache.pp.ru/
> ______________
> If you want to unsubscribe send "unsubscribe udmsearch"
> to [EMAIL PROTECTED]
______________
If you want to unsubscribe send "unsubscribe udmsearch"
to [EMAIL PROTECTED]

Reply via email to