summaryrefslogtreecommitdiff
path: root/Kernel/VirtualConsole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/VirtualConsole.cpp')
-rw-r--r--Kernel/VirtualConsole.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/VirtualConsole.cpp b/Kernel/VirtualConsole.cpp
index 55604c71ac..1e3227d02b 100644
--- a/Kernel/VirtualConsole.cpp
+++ b/Kernel/VirtualConsole.cpp
@@ -508,9 +508,7 @@ void VirtualConsole::on_tty_write(const byte* data, size_t size)
String VirtualConsole::tty_name() const
{
- char buf[16];
- ksprintf(buf, "/dev/tty%u", m_index);
- return String(buf);
+ return String::format("/dev/tty%u", m_index);
}
void VirtualConsole::set_vga_start_row(word row)