mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-26 02:51:16 -03:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user