From 3b0bd1aac42b5a96187b4d45af5230a2bf14fd10 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 15 Jul 1997 16:32:29 +0000 Subject: [PATCH] Bug fix: Match handler didn't terminate the resulting string! --- index/extract.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 1.7.10.4