فهرست منبع

strcpy/strcat fix, backported from devbranch.

Ryan C. Gordon 21 سال پیش
والد
کامیت
4b036dc0a2
3فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 1 0
      CHANGELOG
  2. 3 0
      CREDITS
  3. 1 1
      physfs.c

+ 1 - 0
CHANGELOG

@@ -4,6 +4,7 @@
 
 -- stuff in the stable-1.0 branch, backported from 2.0.0 dev branch, etc ---
 
+10302004 - Fixed a strcpy that should have been a strcat. (thanks, Tolga!)
 09212003 - Happy September. Fixes to bootstrap on MacOS X. Seeking now tries
            to respect pre-buffered data.
 

+ 3 - 0
CREDITS

@@ -64,6 +64,9 @@ HOG archiver,
 MVL archiver,
     Bradley Bell
 
+Bug fixes:
+    Tolga Dalman
+
 Other stuff:
     Your name here! Patches go to icculus@clutteredmind.org ...
 

+ 1 - 1
physfs.c

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