1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Fix error in suffixes area when importing affixes to DB

This commit is contained in:
Andrey A. Chernov 2001-02-01 15:23:12 +00:00
parent 8155707f26
commit 3d8e06d635
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37883
6 changed files with 60 additions and 3 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= mnogosearch
PORTVERSION= 3.1.9
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= www databases
MASTER_SITES= http://search.mnogo.ru/Download/

View File

@ -0,0 +1,19 @@
--- 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){

View File

@ -7,7 +7,7 @@
PORTNAME= mnogosearch
PORTVERSION= 3.1.9
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= www databases
MASTER_SITES= http://search.mnogo.ru/Download/

View File

@ -0,0 +1,19 @@
--- 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){

View File

@ -7,7 +7,7 @@
PORTNAME= mnogosearch
PORTVERSION= 3.1.9
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= www databases
MASTER_SITES= http://search.mnogo.ru/Download/

View File

@ -0,0 +1,19 @@
--- 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){