Fixed area creation case sensitive problem

This commit is contained in:
Michiel Broek
2004-02-29 13:07:42 +00:00
parent 2f83de2991
commit 5e308967eb
7 changed files with 23 additions and 17 deletions

View File

@@ -1 +1 @@
filelist ftscprod.c charset.bin
filelist ftscprod.c charset.bin mbcharsetc

View File

@@ -86,7 +86,7 @@ int smsgarea(char *what, int newsgroup)
msgs_pos = ftell(fil) - msgshdr.recsize;
sysstart = ftell(fil);
fseek(fil, msgshdr.syssize, SEEK_CUR);
if (((!strcmp(what, msgs.Tag) && !newsgroup) || (!strcmp(what, msgs.Newsgroup) && newsgroup)) && msgs.Active) {
if (((!strcasecmp(what, msgs.Tag) && !newsgroup) || (!strcmp(what, msgs.Newsgroup) && newsgroup)) && msgs.Active) {
sysrecord = 0;
fclose(fil);
msgs_crc = 0xffffffff;

View File

@@ -87,7 +87,7 @@ int SearchTic(char *Area)
tic_pos = ftell(fil) - tichdr.recsize;
sysstart = ftell(fil);
fseek(fil, tichdr.syssize, SEEK_CUR);
if (!strcmp(Area, tic.Name) && tic.Active) {
if (!strcasecmp(Area, tic.Name) && tic.Active) {
sysrecord = 0;
fclose(fil);
tic_crc = 0xffffffff;