From a3f687b44d22868f91d96bd7c2b9638a2c68277f Mon Sep 17 00:00:00 2001 From: icculus Date: Tue, 15 Sep 2009 00:19:22 +0000 Subject: Fixed infinite recursion of writing crashlog because we're out of file handles. Fixes Bugzilla #3772. git-svn-id: svn://svn.icculus.org/quake3/trunk@1602 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/files.c | 2 +- code/qcommon/qcommon.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'code/qcommon') diff --git a/code/qcommon/files.c b/code/qcommon/files.c index 1d2ae18..7bbfc45 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -478,7 +478,7 @@ FS_CreatePath Creates any directories needed to store the given filename ============ */ -static qboolean FS_CreatePath (char *OSPath) { +qboolean FS_CreatePath (char *OSPath) { char *ofs; // make absolutely sure that it can't back up the path diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index e9b9037..a2d8106 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -602,6 +602,7 @@ void FS_FreeFileList( char **list ); qboolean FS_FileExists( const char *file ); +qboolean FS_CreatePath (char *OSPath); char *FS_BuildOSPath( const char *base, const char *game, const char *qpath ); int FS_LoadStack( void ); -- cgit v1.2.3