ED_ParseGlobals: switch strcpy() to q_strlcpy() to avoid crashing on certain bogus .sav's

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1397 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
ewasylishen 2017-04-15 22:18:41 +00:00
parent 87a7f01f75
commit 88e0986532
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ void ED_ParseGlobals (const char *data)
if (!data)
Host_Error ("ED_ParseEntity: EOF without closing brace");
strcpy (keyname, com_token);
q_strlcpy (keyname, com_token, sizeof(keyname));
// parse value
data = COM_Parse (data);