mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: set the size of the vector in the constructor
This commit is contained in:
parent
23d081ab21
commit
35ed991abe
|
@ -47,8 +47,7 @@ static void vssappendf(std::string &dest, const char *format, va_list args)
|
|||
return;
|
||||
}
|
||||
|
||||
std::vector<char> output;
|
||||
output.resize(size + 1);
|
||||
std::vector<char> output(size + 1);
|
||||
std::vsnprintf(output.data(), size, format, args);
|
||||
|
||||
dest += output.data();
|
||||
|
|
Loading…
Reference in New Issue