From 9e524e69996d3ca52682a19981a179a7e50349dc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 18 Apr 2005 23:34:18 +0000 Subject: [PATCH] DS suggested we do this... --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4024 --- sourcemm/CServerGameDLL.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sourcemm/CServerGameDLL.h b/sourcemm/CServerGameDLL.h index 3387457..ff49b78 100644 --- a/sourcemm/CServerGameDLL.h +++ b/sourcemm/CServerGameDLL.h @@ -28,13 +28,12 @@ class CServerGameDLL : public IServerGameDLL public: CServerGameDLL() : m_pOrig(0) { - m_GameDescBuffer[0] = 0; + strcpy(m_GameDescBuffer, "Metamod:Source"); } void SetOrig(IServerGameDLL *pOrig) { m_pOrig = pOrig; - strncpy(m_GameDescBuffer, pOrig->GetGameDescription(), 254); - m_GameDescBuffer[255] = 0; + snprintf(m_GameDescBuffer, 255, "%s", pOrig->GetGameDescription()); } virtual bool DLLInit( CreateInterfaceFn engineFactory, CreateInterfaceFn physicsFactory, CreateInterfaceFn fileSystemFactory, CGlobalVars *pGlobals);