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

Fix bounds checking in previous commit.

parent 3269db2c
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ function Graphic_write(xpos, ypos, txt, attr)
var y=ypos-1;
var p=0;
while(p<txt.length && x<=this.width && y<=this.height) {
while(p<txt.length && x<this.width && y<this.height) {
this.data[x][y].ch=txt.substr(p,1);
if(attr!=undefined)
this.data[x][y].attr=attr;
......
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