mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 00:02:56 +08: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:
parent
2b0b3d3193
commit
1cd5b2f4e1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user