mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
Remove another stack character buffer.
While it was probably safe (snprintf was being used correctly) I prefer to avoid the issue completely and centralize any potential problems.
This commit is contained in:
parent
b5ad92d2f0
commit
82038bb504
1 changed files with 1 additions and 4 deletions
|
@ -327,8 +327,6 @@ CL_SignonReply (void)
|
|||
void
|
||||
CL_NextDemo (void)
|
||||
{
|
||||
char str[1024];
|
||||
|
||||
if (cls.demonum == -1)
|
||||
return; // don't play demos
|
||||
|
||||
|
@ -341,8 +339,7 @@ CL_NextDemo (void)
|
|||
}
|
||||
}
|
||||
|
||||
snprintf (str, sizeof (str), "playdemo %s\n", cls.demos[cls.demonum]);
|
||||
Cbuf_InsertText (host_cbuf, str);
|
||||
Cbuf_InsertText (host_cbuf, va ("playdemo %s\n", cls.demos[cls.demonum]));
|
||||
cls.demonum++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue