This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RedBoot: load.c srecord input offset fix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]