From 07f19b4ed398c181a0ea8a9fb581f8098de6eec2 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 22 Sep 1997 12:33:41 +0000 Subject: [PATCH] Fixed bug introduced by previous commit. --- client/Makefile | 4 ++-- util/pquery.c | 7 +++++-- ztest/Makefile | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/client/Makefile b/client/Makefile index 5a18bc1..75c6ea3 100644 --- a/client/Makefile +++ b/client/Makefile @@ -1,7 +1,7 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.12 1997-09-17 12:10:28 adam Exp $ +# $Id: Makefile,v 1.13 1997-09-22 12:33:41 adam Exp $ LIBDIR=../lib @@ -19,7 +19,7 @@ PROGO=client.o all: $(PROG) -$(PROG): $(LIB) $(PROGO) +$(PROG): $(LIB) $(PROGO) $(LIBS) $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS) qparser: qparser.o diff --git a/util/pquery.c b/util/pquery.c index 80d1031..505f131 100644 --- a/util/pquery.c +++ b/util/pquery.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: pquery.c,v $ - * Revision 1.13 1997-09-17 12:10:42 adam + * Revision 1.14 1997-09-22 12:33:41 adam + * Fixed bug introduced by previous commit. + * + * Revision 1.13 1997/09/17 12:10:42 adam * YAZ version 1.4. * * Revision 1.12 1997/09/01 08:54:13 adam @@ -89,7 +92,7 @@ static int compare_term (struct lex_info *li, const char *src, int off) { size_t len=strlen(src); - if (li->lex_len == len && !memcmp (li->lex_buf+off, src, len-off)) + if (li->lex_len == len+off && !memcmp (li->lex_buf+off, src, len-off)) return 1; return 0; } diff --git a/ztest/Makefile b/ztest/Makefile index 3b6be6f..d3300da 100644 --- a/ztest/Makefile +++ b/ztest/Makefile @@ -1,7 +1,7 @@ # Copyright (C) 1995-1997, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.2 1997-09-17 12:10:43 adam Exp $ +# $Id: Makefile,v 1.3 1997-09-22 12:33:41 adam Exp $ LIBDIR=../lib @@ -21,7 +21,7 @@ RANLIB=ranlib all: $(PROG) -$(PROG): $(LIB) $(PROGO) +$(PROG): $(LIB) $(PROGO) $(LIBS) $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS) alll: -- 1.7.10.4