Commit 5a17d30a authored by rswindell's avatar rswindell
Browse files

Update downloadfile() and update_uldate() to search file name in index (.ixb

file) case-insensitively.
parent 0a653027
......@@ -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) {
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment