X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fextract.c;h=20509804f87344aee144971aec6dec27971c6480;hb=9765f689118107e45f5fba7261363980d378f7b3;hp=15e087320a879afb5f8fecb63db6ea106dccd396;hpb=ddbba72d6ac2d51d596775b72ad64999e5cb0b77;p=idzebra-moved-to-github.git diff --git a/index/extract.c b/index/extract.c index 15e0873..2050980 100644 --- a/index/extract.c +++ b/index/extract.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: extract.c,v $ - * Revision 1.5 1995-09-06 16:11:16 adam + * Revision 1.6 1995-09-08 14:52:27 adam + * Minor changes. Dictionary is lower case now. + * + * Revision 1.5 1995/09/06 16:11:16 adam * Option: only one word key per file. * * Revision 1.4 1995/09/05 15:28:39 adam @@ -152,7 +155,7 @@ void text_extract (struct strtab *t, SYSNO sysno, int cmd, const char *fname) struct it_key k; int seqno = 1; int c; - char w[256]; + char w[IT_MAX_WORD]; logf (LOG_DEBUG, "Text extract of %d", sysno); k.sysno = sysno; @@ -167,7 +170,7 @@ void text_extract (struct strtab *t, SYSNO sysno, int cmd, const char *fname) int i = 0; while (i < 254 && c != EOF && isalnum(c)) { - w[i++] = c; + w[i++] = index_char_cvt (c); c = getc (inf); } if (i)