X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fcharmap.c;h=0f87f60ed397088c15bd5b4ecbd791acd545de1c;hb=edf09fc5529eae3e8214a432058b4c07b2b8d2f9;hp=d7b214641d49dd68bfce414103bae54d406a997f;hpb=659af456d07b957cbf9ef9d94e079adf88364bc7;p=idzebra-moved-to-github.git 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;