From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Edwards To: ecos-discuss@sources.redhat.com Subject: [ECOS] Re: RedBoot: load.c srecord input offset fix Date: Thu, 19 Apr 2001 13:24:00 -0000 Message-id: <20010419152550.A29254@visi.com> References: <20010419152033.A29215@visi.com> X-SW-Source: 2001-04/msg00222.html On Thu, Apr 19, 2001 at 03:20:33PM -0500, Grant Edwards wrote: > > The "offset" variable in load_srec_image() isn't incremented > properly (assuming its purpose is to keep track of the current > byte offset in the input stream). My version of load.c has > diverged enough that I can't generate a usable patch, so I'll > summarize the changes: I missed one in my previous post: case '7': case '8': case '9': addr = (unsigned char *)_hex2(getc, ('9'-type+2), &sum); - offset += ('9'-type+2); + offset += ('9'-type+2)*2; -- Grant Edwards grante@visi.com