[ECOS] Problem in cyg_io_compare?
Gary D. Thomas
gary.thomas@mind.be
Mon Jul 28 13:21:00 GMT 2003
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
More information about the Ecos-discuss
mailing list