From d5b3905528803792d37b9e3924820cd8c7de3b2f Mon Sep 17 00:00:00 2001 From: Alexey Khromov Date: Fri, 2 May 2025 23:16:22 +0300 Subject: [PATCH] strncasecmp in nodelist find (prelim) --- source/bforce/nodelist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/bforce/nodelist.c b/source/bforce/nodelist.c index f80ce5b..80a921d 100644 --- a/source/bforce/nodelist.c +++ b/source/bforce/nodelist.c @@ -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 */ {