--- /n/sources/plan9/sys/src/9/pc/vga.c Sun Nov 6 15:23:15 2005 +++ /sys/src/9/pc/vga.c Sun Apr 24 00:00:00 2016 @@ -70,7 +70,7 @@ Rectangle r; // drawdebug = 1; - if(xp < xbuf || xp >= &xbuf[sizeof(xbuf)]) + if(xp < xbuf || xp >= &xbuf[nelem(xbuf)]) xp = xbuf; h = scr->memdefont->height;