From 151f14593b5b81be4a65f64e402a73023d9b0022 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 1 Jul 1997 13:01:08 +0000 Subject: [PATCH] Bug fix in routine find_entry: didn't take into account the len arg. --- util/charmap.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 1.7.10.4