strncasecmp in nodelist find (prelim)
This commit is contained in:
parent
07b64ce968
commit
d5b3905528
@ -521,6 +521,7 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
|
||||
|
||||
if( strlen(tmpseek) == strlen(tmpname) )
|
||||
{
|
||||
// strncasecmp?
|
||||
if( (strncmp(tmpseek, tmpname, strlen(tmpseek)-3 ) == 0) )
|
||||
{
|
||||
|
||||
@ -541,7 +542,7 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
|
||||
closedir(ndirstream);
|
||||
}
|
||||
}
|
||||
|
||||
// strncasecmp? - seems to be hardcoded '999'
|
||||
if( strcmp(name+strlen(name)-4, ".999") == 0 )
|
||||
/* we haven`t found any nodelist for this mask */
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user