From 1adb96907a4b0deade727fe86cfcada3a02650ed Mon Sep 17 00:00:00 2001 From: TimeServ Date: Sat, 8 Apr 2006 04:16:53 +0000 Subject: [PATCH] remove the cfg_save x.cfg -> x.cfg.cfg situation, still not like the z-family cfg_save though git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2176 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/cmd.c b/engine/common/cmd.c index bca8e6ecc..5734969eb 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -2734,7 +2734,7 @@ void Cmd_WriteConfig_f(void) filename = va("configs/%s.cfg",filename); } - Q_strncpyz(fname, filename, sizeof(fname)); + COM_StripExtension(filename, fname, sizeof(fname)); COM_DefaultExtension(fname, ".cfg", sizeof(fname)); FS_CreatePath(filename, FS_CONFIGONLY); f = FS_OpenVFS(filename, "wb", FS_CONFIGONLY);