Skip to content
Snippets Groups Projects
Commit c42a40a9 authored by deuce's avatar deuce
Browse files

Fix vmem_gettext() when not supported.

parent 41ca10c2
No related branches found
No related tags found
No related merge requests found
......@@ -1396,9 +1396,10 @@ CIOLIBEXPORT int CIOLIBCALL ciolib_vmem_gettext(int a,int b,int c,int d,struct v
buf = malloc((c-a+1)*(d-b+1)*sizeof(*buf));
if (buf == NULL)
return 0;
ret = ciolib_gettext(a, b, c, d, e);
ret = ciolib_gettext(a, b, c, d, buf);
if (ret) {
for (i=0; i<(c-a+1)*(d-b+1); i++) {
memset(&e[i], 0, sizeof(e[0]));
e[i].ch = buf[i] & 0xff;
e[i].legacy_attr = buf[i] >> 8;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment