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]
Other format: [Raw text]

Re: Problem in cyg_io_compare?


On Mon, 2003-07-28 at 07:07, David N. Welton wrote:
> Does this patch look out of place?

Actually, it would be preferable to discuss such things on
ecos-patches or ecos-devel.

> 
> Without it, setting *ptr to n1 is just going to leave *ptr hanging off
> the end of the 'real' n1, according to my reading of the code.  This
> fix seems to make things work for me (i.e. the name parameter to my
> device's lookup function actually contains something valid).
> 

It's not clear why you think there is an error here.  The code
looks right to me and the only time that *ptr could point off
the end of the string would be if n1 pointed to a string which
matched 100% n2.

Can you please explain how your patch changes this behaviour?

-- 
Gary D. Thomas <gary.thomas@mind.be>


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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