minor improvement of function to check for string suffix
[rocksndiamonds.git] / src / libgame / misc.c
index c1450d4a7ab536e7751e7df69d92251b3f276f84..a02e19ecee48fad070d28cfaa904ece6d1a01757 100644 (file)
@@ -876,7 +876,7 @@ boolean strSuffix(char *s, char *suffix)
          s == NULL && suffix != NULL ? FALSE :
          s != NULL && suffix == NULL ? FALSE :
          strlen(s) < strlen(suffix)  ? FALSE :
-         strncmp(&s[strlen(s) - strlen(suffix)], suffix, strlen(suffix)) == 0);
+         strcmp(&s[strlen(s) - strlen(suffix)], suffix) == 0);
 }
 
 boolean strPrefixLower(char *s, char *prefix)