Fossil SCM
Purge all instances of strcasecmp() and stricmp() from the code. Use fossil_stricmp() instead.
Commit
3789c44bb50b198b9589949c52e1d519503e9cae
Parent
f22ed9bfb1ab8f9…
3 files changed
+1
-1
+1
-1
+1
-1
+1
-1
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -668,11 +668,11 @@ | ||
| 668 | 668 | @ </span></p> |
| 669 | 669 | }else if( strcmp(zPasswd,zConfirm)!=0 ){ |
| 670 | 670 | @ <p><span class="loginError"> |
| 671 | 671 | @ The two copies of your new passwords do not match. |
| 672 | 672 | @ </span></p> |
| 673 | - }else if( strcasecmp(zPw, zCap)!=0 ){ | |
| 673 | + }else if( fossil_stricmp(zPw, zCap)!=0 ){ | |
| 674 | 674 | @ <p><span class="loginError"> |
| 675 | 675 | @ Captcha text invalid. |
| 676 | 676 | @ </span></p> |
| 677 | 677 | }else{ |
| 678 | 678 | /* This almost is stupid copy-paste of code from user.c:user_cmd(). */ |
| 679 | 679 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -668,11 +668,11 @@ | |
| 668 | @ </span></p> |
| 669 | }else if( strcmp(zPasswd,zConfirm)!=0 ){ |
| 670 | @ <p><span class="loginError"> |
| 671 | @ The two copies of your new passwords do not match. |
| 672 | @ </span></p> |
| 673 | }else if( strcasecmp(zPw, zCap)!=0 ){ |
| 674 | @ <p><span class="loginError"> |
| 675 | @ Captcha text invalid. |
| 676 | @ </span></p> |
| 677 | }else{ |
| 678 | /* This almost is stupid copy-paste of code from user.c:user_cmd(). */ |
| 679 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -668,11 +668,11 @@ | |
| 668 | @ </span></p> |
| 669 | }else if( strcmp(zPasswd,zConfirm)!=0 ){ |
| 670 | @ <p><span class="loginError"> |
| 671 | @ The two copies of your new passwords do not match. |
| 672 | @ </span></p> |
| 673 | }else if( fossil_stricmp(zPw, zCap)!=0 ){ |
| 674 | @ <p><span class="loginError"> |
| 675 | @ Captcha text invalid. |
| 676 | @ </span></p> |
| 677 | }else{ |
| 678 | /* This almost is stupid copy-paste of code from user.c:user_cmd(). */ |
| 679 |
+1
-1
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -491,11 +491,11 @@ | ||
| 491 | 491 | #SSL = -DFOSSIL_ENABLE_SSL=1 |
| 492 | 492 | SSL = |
| 493 | 493 | |
| 494 | 494 | I18N = -DFOSSIL_I18N=0 |
| 495 | 495 | |
| 496 | -CFLAGS = -o -Dstrcasecmp=stricmp | |
| 496 | +CFLAGS = -o | |
| 497 | 497 | BCC = $(DMDIR)\bin\dmc $(CFLAGS) |
| 498 | 498 | TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL) |
| 499 | 499 | LIBS = $(DMDIR)\extra\lib\ zlib wsock32 |
| 500 | 500 | } |
| 501 | 501 | writeln -nonewline "SRC = " |
| 502 | 502 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -491,11 +491,11 @@ | |
| 491 | #SSL = -DFOSSIL_ENABLE_SSL=1 |
| 492 | SSL = |
| 493 | |
| 494 | I18N = -DFOSSIL_I18N=0 |
| 495 | |
| 496 | CFLAGS = -o -Dstrcasecmp=stricmp |
| 497 | BCC = $(DMDIR)\bin\dmc $(CFLAGS) |
| 498 | TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL) |
| 499 | LIBS = $(DMDIR)\extra\lib\ zlib wsock32 |
| 500 | } |
| 501 | writeln -nonewline "SRC = " |
| 502 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -491,11 +491,11 @@ | |
| 491 | #SSL = -DFOSSIL_ENABLE_SSL=1 |
| 492 | SSL = |
| 493 | |
| 494 | I18N = -DFOSSIL_I18N=0 |
| 495 | |
| 496 | CFLAGS = -o |
| 497 | BCC = $(DMDIR)\bin\dmc $(CFLAGS) |
| 498 | TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL) |
| 499 | LIBS = $(DMDIR)\extra\lib\ zlib wsock32 |
| 500 | } |
| 501 | writeln -nonewline "SRC = " |
| 502 |
+1
-1
| --- win/Makefile.dmc | ||
| +++ win/Makefile.dmc | ||
| @@ -17,11 +17,11 @@ | ||
| 17 | 17 | #SSL = -DFOSSIL_ENABLE_SSL=1 |
| 18 | 18 | SSL = |
| 19 | 19 | |
| 20 | 20 | I18N = -DFOSSIL_I18N=0 |
| 21 | 21 | |
| 22 | -CFLAGS = -o -Dstrcasecmp=stricmp | |
| 22 | +CFLAGS = -o | |
| 23 | 23 | BCC = $(DMDIR)\bin\dmc $(CFLAGS) |
| 24 | 24 | TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL) |
| 25 | 25 | LIBS = $(DMDIR)\extra\lib\ zlib wsock32 |
| 26 | 26 | |
| 27 | 27 | SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c |
| 28 | 28 |
| --- win/Makefile.dmc | |
| +++ win/Makefile.dmc | |
| @@ -17,11 +17,11 @@ | |
| 17 | #SSL = -DFOSSIL_ENABLE_SSL=1 |
| 18 | SSL = |
| 19 | |
| 20 | I18N = -DFOSSIL_I18N=0 |
| 21 | |
| 22 | CFLAGS = -o -Dstrcasecmp=stricmp |
| 23 | BCC = $(DMDIR)\bin\dmc $(CFLAGS) |
| 24 | TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL) |
| 25 | LIBS = $(DMDIR)\extra\lib\ zlib wsock32 |
| 26 | |
| 27 | SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c |
| 28 |
| --- win/Makefile.dmc | |
| +++ win/Makefile.dmc | |
| @@ -17,11 +17,11 @@ | |
| 17 | #SSL = -DFOSSIL_ENABLE_SSL=1 |
| 18 | SSL = |
| 19 | |
| 20 | I18N = -DFOSSIL_I18N=0 |
| 21 | |
| 22 | CFLAGS = -o |
| 23 | BCC = $(DMDIR)\bin\dmc $(CFLAGS) |
| 24 | TCC = $(DMDIR)\bin\dmc $(CFLAGS) $(DMCDEF) $(I18N) $(SSL) $(INCL) |
| 25 | LIBS = $(DMDIR)\extra\lib\ zlib wsock32 |
| 26 | |
| 27 | SRC = add_.c allrepo_.c attach_.c bag_.c bisect_.c blob_.c branch_.c browse_.c captcha_.c cgi_.c checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c doc_.c encode_.c event_.c export_.c file_.c finfo_.c graph_.c http_.c http_socket_.c http_ssl_.c http_transport_.c import_.c info_.c login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c popen_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c schema_.c search_.c setup_.c sha1_.c shun_.c skins_.c sqlcmd_.c stash_.c stat_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c wiki_.c wikiformat_.c winhttp_.c xfer_.c zip_.c |
| 28 |