Explorar o código

Fixed a strcpy bug.

Ryan C. Gordon %!s(int64=21) %!d(string=hai) anos
pai
achega
bdd4ca0d93
Modificáronse 3 ficheiros con 5 adicións e 1 borrados
  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);