From: Adam Dickmeiss Date: Tue, 15 Jul 1997 16:32:29 +0000 (+0000) Subject: Bug fix: Match handler didn't terminate the resulting string! X-Git-Tag: ZEBRA.1.0~329 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=3b0bd1aac42b5a96187b4d45af5230a2bf14fd10;p=idzebra-moved-to-github.git Bug fix: Match handler didn't terminate the resulting string! --- diff --git a/index/extract.c b/index/extract.c index 0320801..35ec288 100644 --- a/index/extract.c +++ b/index/extract.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: extract.c,v $ - * Revision 1.71 1997-07-15 16:28:41 adam + * Revision 1.72 1997-07-15 16:32:29 adam + * Bug fix: Match handler didn't terminate the resulting string! + * + * Revision 1.71 1997/07/15 16:28:41 adam * Bug fix: storeData didn't work with files with multiple records. * Bug fix: fixed memory management with records; not really well * thought through. @@ -923,6 +926,7 @@ static char *fileMatchStr (struct recKeys *reckeys, struct recordGroup *rGroup, fname, rGroup->groupName ? rGroup->groupName : "none"); return NULL; } + *dst = '\0'; return dstBuf; }