added ability to undo (restore) the previously recorded tape
[rocksndiamonds.git] / src / libgame / misc.c
index fedc30487786287ea3e99dc75cb4aab57243e1af..a02e19ecee48fad070d28cfaa904ece6d1a01757 100644 (file)
@@ -4,7 +4,7 @@
 // (c) 1995-2014 by Artsoft Entertainment
 //                         Holger Schemel
 //                 info@artsoft.org
-//                 http://www.artsoft.org/
+//                 https://www.artsoft.org/
 // ----------------------------------------------------------------------------
 // misc.c
 // ============================================================================
@@ -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)
@@ -1480,7 +1480,7 @@ void WriteBytesToFile(FILE *file, byte *buffer, unsigned int bytes)
 {
   int i;
 
-  for(i = 0; i < bytes; i++)
+  for (i = 0; i < bytes; i++)
     fputc(buffer[i], file);
 }