From bdd4ca0d93e0d1cc659236b1c29647dd85edc0bc Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 30 Oct 2004 09:31:54 +0000 Subject: [PATCH] Fixed a strcpy bug. --- CHANGELOG | 1 + CREDITS | 3 +++ physfs.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index b929dc0c..85c82d74 100644 --- a/CHANGELOG +++ b/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 diff --git a/CREDITS b/CREDITS index 9211926d..b0e84026 100644 --- a/CREDITS +++ b/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 ... diff --git a/physfs.c b/physfs.c index 7fe60385..25749b92 100644 --- a/physfs.c +++ b/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);