Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: BUG: vdr-streamdev



On Thu, Nov 04, 2004 at 12:17:46PM +0100, hm@seneca.muc.de wrote:

> if (strncasecmp (String, channel->Name(), strlen (channel->Name())) == 0) 

Is it by intention that you use strncasecmp() instead of strcasecmp()?
Even when you favour strncasecmp() then the length should be evaluated
from String:

 if (strncasecmp (String, channel->Name(), strlen (String)) == 0) 

This way the first matching channel will be taken.

-- 
Please visit and sign and http://www.ffii.org
-- Josef Wolf -- jw@raven.inka.de --




Home | Main Index | Thread Index