]> sjero.net Git - wget/blobdiff - src/utils.c
NEWS: cite --start-pos
[wget] / src / utils.c
index 2ec960183f4be3060ae2d8439ad0cfe73c170792..4354668c187e3f522b507846b2d5330dd2b169d4 100644 (file)
@@ -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