mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 15:11:46 +00:00
- fix uninitialized string buffer in bot code.
SVN r3287 (trunk)
This commit is contained in:
parent
5747406776
commit
f8bc459a21
1 changed files with 1 additions and 0 deletions
|
@ -474,6 +474,7 @@ static void appendinfo (char *&front, const char *back)
|
||||||
{
|
{
|
||||||
size_t newlen = strlen (back) + 2;
|
size_t newlen = strlen (back) + 2;
|
||||||
newstr = new char[newlen];
|
newstr = new char[newlen];
|
||||||
|
newstr[0] = 0;
|
||||||
}
|
}
|
||||||
strcat (newstr, "\\");
|
strcat (newstr, "\\");
|
||||||
strcat (newstr, back);
|
strcat (newstr, back);
|
||||||
|
|
Loading…
Reference in a new issue