summaryrefslogtreecommitdiff
path: root/src/kernel/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/ui')
-rw-r--r--src/kernel/ui/vt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/ui/vt.cpp b/src/kernel/ui/vt.cpp
index 683d484..cbb29f7 100644
--- a/src/kernel/ui/vt.cpp
+++ b/src/kernel/ui/vt.cpp
@@ -129,7 +129,7 @@ int vt::outputTo(display *display) {
w = output->text_w();
h = output->text_h();
- text = (vt_char*)malloc(w * h * sizeof(vt_char));
+ text = (vt_char*)kmalloc(w * h * sizeof(vt_char));
for (int c = 0; c < w; c++) {
for (int l = 0; l < h; l++) {
if (c < ow && l < oh) {
@@ -139,7 +139,7 @@ int vt::outputTo(display *display) {
}
}
}
- if (old_text != 0) free(old_text);
+ if (old_text != 0) kfree(old_text);
if (csr_c >= w) csr_c = w;
if (csr_l >= h) csr_l = h;
} else {