This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: RedBoot: load.c srecord input offset fix
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] Re: RedBoot: load.c srecord input offset fix
- From: Grant Edwards <grante at visi dot com>
- Date: Thu, 19 Apr 2001 15:25:51 -0500
- References: <20010419152033.A29215@visi.com>
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