gamiddleton@WATMATH.WATERLOO.EDU (Guy Middleton) (05/29/90)
Running off the end of an array; was causing core dumps on my MIPS machine.
*** /tmp/,RCSt1017745 Tue May 29 12:19:16 1990
--- doload.c Mon May 28 20:31:41 1990
***************
*** 119,127 ****
struct doload_section_description *thisDesc;
safe_read(e, (char *)tempSection, (long)sizeof(*tempSection));
! for (thisDesc = sectionDescs; thisDesc < sectionDescs +
! sizeof(sectionDescs) && strcmp(tempSection->s_name,
! thisDesc->name) != 0; thisDesc++)
;
if (thisDesc < sectionDescs +
--- 119,127 ----
struct doload_section_description *thisDesc;
safe_read(e, (char *)tempSection, (long)sizeof(*tempSection));
! for (thisDesc = sectionDescs;
! thisDesc < sectionDescs + sizeof(sectionDescs)/sizeof(*thisDesc)
! && strcmp(tempSection->s_name, thisDesc->name) != 0; thisDesc++)
;
if (thisDesc < sectionDescs +