From: Adam Dickmeiss Date: Tue, 1 Jul 1997 13:01:08 +0000 (+0000) Subject: Bug fix in routine find_entry: didn't take into account the len arg. X-Git-Tag: ZEBRA.1.0~332 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=151f14593b5b81be4a65f64e402a73023d9b0022;p=idzebra-moved-to-github.git Bug fix in routine find_entry: didn't take into account the len arg. --- diff --git a/util/charmap.c b/util/charmap.c index d7b2146..0f87f60 100644 --- a/util/charmap.c +++ b/util/charmap.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: charmap.c,v $ - * Revision 1.9 1996-10-29 13:48:14 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 @@ -145,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;