X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Futils.c;h=01be3ea2d839298e08e7652a63d53bf0fa9445c1;hp=2ec960183f4be3060ae2d8439ad0cfe73c170792;hb=97787110a2b6e99f80b277dbffdbbc4b0d608a55;hpb=c9c0e4c6418350d913638d73e0a50bebdb5fd983 diff --git a/src/utils.c b/src/utils.c index 2ec96018..01be3ea2 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1024,9 +1024,9 @@ match_tail (const char *string, const char *tail, bool fold_case) return false; /* tail is longer than string. */ if (!fold_case) - return strcmp (string + pos, tail); + return !strcmp (string + pos, tail); else - return strcasecmp (string + pos, tail); + return !strcasecmp (string + pos, tail); } /* Checks whether string S matches each element of ACCEPTS. A list @@ -2509,7 +2509,7 @@ const char * test_dir_matches_p() { static struct { - const char *dirlist[3]; + char *dirlist[3]; const char *dir; bool result; } test_array[] = {