Fixed a strcpy bug.

This commit is contained in:
Ryan C. Gordon 2004-10-30 09:31:54 +00:00
parent 3e06b381e9
commit bdd4ca0d93
3 changed files with 5 additions and 1 deletions

View File

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

View File

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

View File

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