diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 11:25:25 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 11:25:25 +0200 |
commit | f3e03796652b792bb3fd5d3d25b687b9a7f14633 (patch) | |
tree | feef62986de699702136aaf0d56295fde9297115 /src/kernel/ui | |
parent | c19415d2ffb6f063f91983ff505e2530ab500908 (diff) | |
download | TCE-f3e03796652b792bb3fd5d3d25b687b9a7f14633.tar.gz TCE-f3e03796652b792bb3fd5d3d25b687b9a7f14633.zip |
A bit of a change in the directory layout.
Diffstat (limited to 'src/kernel/ui')
-rw-r--r-- | src/kernel/ui/vt.cpp | 4 |
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 { |