Pass string length instead of recomputing

This called `writestr(char*)`, which then just called `writestr(char*,
strlen(char*))`, when it had the string length right there!
This commit is contained in:
Fabian Homborg 2019-03-07 10:02:39 +01:00
parent 2b0b3d3193
commit 1cd5b2f4e1

View file

@ -410,7 +410,7 @@ void outputter_t::writestr(const wchar_t *str) {
buffer = new char[len];
}
wcstombs(buffer, str, len);
this->writestr(buffer);
this->writestr(buffer, len);
if (buffer != static_buffer) delete[] buffer;
}