From 5a17d30afe241f345e5f411768454a3d08e6037d Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 11 Jun 2009 06:15:27 +0000
Subject: [PATCH] Update downloadfile() and update_uldate() to search file name
 in index (.ixb file) case-insensitively.

---
 src/sbbs3/download.cpp | 2 +-
 src/sbbs3/filedat.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/download.cpp b/src/sbbs3/download.cpp
index 327e363c40..77de27f77a 100644
--- a/src/sbbs3/download.cpp
+++ b/src/sbbs3/download.cpp
@@ -118,7 +118,7 @@ void sbbs_t::downloadfile(file_t* f)
 	for(l=0;l<(ulong)length;l+=F_IXBSIZE) {
 		read(file,str,F_IXBSIZE);      /* Look for the filename in the IXB file */
 		str[11]=0;
-		if(!strcmp(fname,str)) 
+		if(!stricmp(fname,str)) 
 			break; 
 	}
 	if(l>=(ulong)length) {
diff --git a/src/sbbs3/filedat.c b/src/sbbs3/filedat.c
index 46c2b557ee..cac7ae28cc 100644
--- a/src/sbbs3/filedat.c
+++ b/src/sbbs3/filedat.c
@@ -701,7 +701,7 @@ int DLLCALL update_uldate(scfg_t* cfg, file_t* f)
 	for(l=0;l<length;l+=F_IXBSIZE) {
 		read(file,str,F_IXBSIZE);      /* Look for the filename in the IXB file */
 		str[11]=0;
-		if(!strcmp(fname,str)) break; 
+		if(!stricmp(fname,str)) break; 
 	}
 	if(l>=length) {
 		close(file);
-- 
GitLab