X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fextract.c;h=2e0daea65eddafc55b7bccf267bc651ba42f3565;hb=006237a33041ba329aa1ce4b6bb9d7c7499a5fd1;hp=2eb7fd54365fea57814cb07b2747eb8e46e9bfaf;hpb=8a10428f21d9a1c308a85eae620d2de8c7765577;p=idzebra-moved-to-github.git diff --git a/index/extract.c b/index/extract.c index 2eb7fd5..2e0daea 100644 --- a/index/extract.c +++ b/index/extract.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: extract.c,v $ - * Revision 1.65 1996-11-14 08:57:56 adam + * Revision 1.66 1996-11-14 09:52:21 adam + * Strings in record keys bound by IT_MAX_WORD. + * + * Revision 1.65 1996/11/14 08:57:56 adam * Reduction of storeKeys area. * * Revision 1.64 1996/11/08 11:10:16 adam @@ -559,7 +562,7 @@ static void addRecordKey (const RecWord *p) case Word_Numeric: *dst++ = 'n'; } - for (i = 0; p->u.string[i]; i++) + for (i = 0; p->u.string[i] && i < IT_MAX_WORD-3; i++) *dst++ = p->u.string[i]; *dst++ = '\0';