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:
Bill Currie 2011-06-03 22:18:08 +09:00
parent b5ad92d2f0
commit 82038bb504

View file

@ -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++;
}