Jelajahi Sumber

Fixed a strcpy bug.

Ryan C. Gordon 21 tahun lalu
induk
melakukan
bdd4ca0d93
3 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 1 0
      CHANGELOG
  2. 3 0
      CREDITS
  3. 1 1
      physfs.c

+ 1 - 0
CHANGELOG

@@ -2,6 +2,7 @@
  * CHANGELOG.
  */
 
+10302004 - Fixed a strcpy that should have been a strcat. (thanks, Tolga!)
 10062004 - Removed profiling code from physfs.c.
 09292004 - Every API that can return a list of strings can now use a
            callback mechanism if the application wants to do it's own

+ 3 - 0
CREDITS

@@ -67,6 +67,9 @@ MVL archiver,
 MIX archiver,
     Sebastian Steinhauer
 
+Bug fixes:
+    Tolga Dalman
+
 Other stuff:
     Your name here! Patches go to icculus@clutteredmind.org ...
 

+ 1 - 1
physfs.c

@@ -1119,7 +1119,7 @@ char * __PHYSFS_convertToDependent(const char *prepend,
     if (append)
     {
         strcat(str, dirsep);
-        strcpy(str, append);
+        strcat(str, append);
     } /* if */
 
     return(str);