mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
87a7f01f75
commit
88e0986532
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue