Fixed bug introduced by previous commit.
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 22 Sep 1997 12:33:41 +0000 (12:33 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 22 Sep 1997 12:33:41 +0000 (12:33 +0000)
client/Makefile
util/pquery.c
ztest/Makefile

index 5a18bc1..75c6ea3 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright (C) 1994, Index Data I/S 
 # All rights reserved.
 # Sebastian Hammer, Adam Dickmeiss
 # 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
 
 
 LIBDIR=../lib
 
@@ -19,7 +19,7 @@ PROGO=client.o
 
 all: $(PROG)
 
 
 all: $(PROG)
 
-$(PROG): $(LIB) $(PROGO)
+$(PROG): $(LIB) $(PROGO) $(LIBS)
        $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS)
 
 qparser: qparser.o
        $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS)
 
 qparser: qparser.o
index 80d1031..505f131 100644 (file)
@@ -4,7 +4,10 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: pquery.c,v $
  * 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
  * 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);
 
 {
     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;
 }
        return 1;
     return 0;
 }
index 3b6be6f..d3300da 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright (C) 1995-1997, Index Data I/S 
 # All rights reserved.
 # Sebastian Hammer, Adam Dickmeiss
 # 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
 
 
 LIBDIR=../lib
 
@@ -21,7 +21,7 @@ RANLIB=ranlib
 
 all: $(PROG)
 
 
 all: $(PROG)
 
-$(PROG): $(LIB) $(PROGO) 
+$(PROG): $(LIB) $(PROGO) $(LIBS)
        $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS)
 
 alll:
        $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS)
 
 alll: