ref: 8ea31ae7b21e9f0c8991b2b861bc51ea3d67c3cd
parent: a6d852d0a63c3804fa651fdb8abbf6893f898afd
author: cinap_lenrek <[email protected]>
date: Sun Apr 2 16:10:44 EDT 2017
devvga: fix mistake
--- a/sys/src/9/pc/devvga.c
+++ b/sys/src/9/pc/devvga.c
@@ -205,7 +205,8 @@
p = seprint(p, e, "addr p %#p v %#p size %#ux\n",
scr->paddr, scr->vaddr, scr->apsize);
p = seprint(p, e, "softscreen %s\n", scr->softscreen ? "on" : "off");
- n = readstr(offset, a, p - s, s);
+ USED(p);
+ n = readstr(offset, a, n, s);
poperror();
free(s);