Added MARC filter - type grs.marc.<syntax> where syntax refers
[idzebra-moved-to-github.git] / util / charmap.c
index 067a430..0f87f60 100644 (file)
@@ -4,7 +4,13 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: charmap.c,v $
- * Revision 1.8  1996-10-18 12:39:23  adam
+ * Revision 1.10  1997-07-01 13:01:08  adam
+ * Bug fix in routine find_entry: didn't take into account the len arg.
+ *
+ * Revision 1.9  1996/10/29 13:48:14  adam
+ * Updated to use zebrautl.h instead of alexutil.h.
+ *
+ * Revision 1.8  1996/10/18 12:39:23  adam
  * Uses LOG_DEBUG instead of LOG_WARN for "Character map overlap".
  *
  * Revision 1.7  1996/06/06  12:08:56  quinn
@@ -40,7 +46,7 @@
 #include <string.h>
 #include <assert.h>
 
-#include <alexutil.h>
+#include <zebrautl.h>
 #include <yaz-util.h>
 #include <charmap.h>
 #include <tpath.h>
@@ -142,7 +148,7 @@ static chr_t_entry *find_entry(chr_t_entry *t, char **from, int len)
 {
     chr_t_entry *res;
 
-    if (t->children && t->children[(unsigned char) **from])
+    if (len && t->children && t->children[(unsigned char) **from])
     {
        char *pos = *from;