*** lookup.c Sat Aug 10 02:10:32 1996 --- lookup.c Sun May 10 16:05:16 1998 *************** *** 15,20 **** --- 15,21 ---- #include "misc.h" #define SUBFRAMESIZE 128 + #define MIDASHIMAX 64 int cur_s; *************** *** 411,416 **** --- 412,419 ---- return (fseek(dict->stream, (long)(f-1)*FRAMESIZE , 0)); } + int mcount; + findentry(ent,type,env_p) unsigned char *ent; ENV *env_p; *************** *** 423,428 **** --- 426,432 ---- #ifdef DEBUG int i; #endif + mcount=0; dict=env_p->dict; for(p=dict->index; p!=NULL && p->type!=type; p=p->next) ; *************** *** 484,490 **** dict=env_p->dict; ! if(match) { int frm,ofs; if(midasi) { frm=FOURBYTEUINT(q+6); --- 488,494 ---- dict=env_p->dict; ! if(match && mcount < MIDASHIMAX) { int frm,ofs; if(midasi) { frm=FOURBYTEUINT(q+6); *************** *** 496,501 **** --- 500,506 ---- ofs=TWOBYTEUINT(q+4); sprintf(buf,"%x:%x\n",frm,ofs); write(cur_s,buf,strlen(buf)); + ++mcount; } if(midasi) return q+12; else return q+6;